Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Add deprecation warning
Browse files Browse the repository at this point in the history
* 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 <kingdon@weave.works>
  • Loading branch information
Kingdon Barrett committed Aug 29, 2022
1 parent 1f118d2 commit cc5bb13
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions chart/flux/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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/
10 changes: 10 additions & 0 deletions cmd/fluxctl/install_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ fluxctl install --git-url 'git@github.com:<your username>/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
}
Expand Down

0 comments on commit cc5bb13

Please sign in to comment.