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

Commit

Permalink
Merge pull request #3638 from fluxcd/add-deprecation-warnings
Browse files Browse the repository at this point in the history
Add deprecation warnings to Helm Chart and fluxctl
  • Loading branch information
Kingdon Barrett authored Aug 29, 2022
2 parents 1f118d2 + cc5bb13 commit f69a616
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 '[email protected]:<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 f69a616

Please sign in to comment.