This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2392 from 2opremio/install-git-paths-git-path
Deprecate `install --git-paths` and use `git-path` instead
- Loading branch information
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,8 @@ fluxctl install --git-url '[email protected]:<your username>/flux-get-started' | ku | |
"Git branch to be used by Flux") | ||
cmd.Flags().StringSliceVarP(&opts.GitPaths, "git-paths", "", []string{}, | ||
"Relative paths within the Git repo for Flux to locate Kubernetes manifests") | ||
cmd.Flags().StringSliceVarP(&opts.GitPaths, "git-path", "", []string{}, | ||
"Relative paths within the Git repo for Flux to locate Kubernetes manifests") | ||
cmd.Flags().StringVarP(&opts.GitLabel, "git-label", "", "flux", | ||
"Git label to keep track of Flux's sync progress; overrides both --git-sync-tag and --git-notes-ref") | ||
cmd.Flags().StringVarP(&opts.GitUser, "git-user", "", "Flux", | ||
|
@@ -37,6 +39,11 @@ fluxctl install --git-url '[email protected]:<your username>/flux-get-started' | ku | |
"Email to use as git committer") | ||
cmd.Flags().StringVarP(&opts.Namespace, "namespace", "", getKubeConfigContextNamespace("default"), | ||
"Cluster namespace where to install flux") | ||
|
||
// Hide and deprecate "git-paths", which was wrongly introduced since its inconsistent with fluxd's git-path flag | ||
cmd.Flags().MarkHidden("git-paths") | ||
cmd.Flags().MarkDeprecated("git-paths", "please use --git-path (no ending s) instead") | ||
|
||
return cmd | ||
} | ||
|
||
|