From cc5bb132f65f5a90abca75cf9066f4a1f96b887f Mon Sep 17 00:00:00 2001 From: Kingdon Barrett Date: Mon, 29 Aug 2022 08:44:32 -0400 Subject: [PATCH] Add deprecation warning * to NOTES.txt * to fluxctl install Let new users know as soon as they start using Flux that this version is going to be deprecated. Signed-off-by: Kingdon Barrett --- chart/flux/templates/NOTES.txt | 9 +++++++++ cmd/fluxctl/install_cmd.go | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/chart/flux/templates/NOTES.txt b/chart/flux/templates/NOTES.txt index 8553985a0..5e6f65375 100644 --- a/chart/flux/templates/NOTES.txt +++ b/chart/flux/templates/NOTES.txt @@ -8,3 +8,12 @@ and running: fluxctl identity --k8s-fwd-ns {{ .Release.Namespace }} +--- + +**Flux v1 is deprecated, please upgrade to v2 as soon as possible!** + +New users of Flux can Get Started here: +https://fluxcd.io/docs/get-started/ + +Existing users can upgrade using the Migration Guide: +https://fluxcd.io/docs/migration/ diff --git a/cmd/fluxctl/install_cmd.go b/cmd/fluxctl/install_cmd.go index 7b0ae8552..279ff40f3 100644 --- a/cmd/fluxctl/install_cmd.go +++ b/cmd/fluxctl/install_cmd.go @@ -61,6 +61,16 @@ fluxctl install --git-url 'git@github.com:/flux-get-started' --gi } func (opts *installOpts) RunE(cmd *cobra.Command, args []string) error { + fmt.Fprintf(os.Stderr, `**Flux v1 is deprecated, please upgrade to v2 as soon as possible!** + +New users of Flux can Get Started here: +https://fluxcd.io/docs/get-started/ + +Existing users can upgrade using the Migration Guide: +https://fluxcd.io/docs/migration/ + +`) + if len(args) != 0 { return errorWantedNoArgs }