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

Add deprecation warnings to Helm Chart and fluxctl #3638

Merged
merged 1 commit into from
Aug 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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