Bring back --set flag to apply subcommand

We would like to add back --set flag to apply subcommand, which was
accidentally removed after switching to cobra (#234)

Signed-off-by: Michal Jura <mjura@suse.com>
This commit is contained in:
Michal Jura 2022-08-17 13:22:34 +02:00
parent c26bc2e26e
commit 14e277f683
No known key found for this signature in database
GPG Key ID: D7E3AA07FE1E8A1A
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ func NewApplyCmd(globalCfg *config.GlobalImpl) *cobra.Command {
}
f := cmd.Flags()
f.StringSliceVar(&applyImpl.ApplyOptions.Set, "set", nil, "additional values to be merged into the command")
f.StringSliceVar(&applyImpl.ApplyOptions.Values, "values", nil, "additional value files to be merged into the command")
f.IntVar(&applyImpl.ApplyOptions.Concurrency, "concurrency", 0, "maximum number of concurrent helm processes to run, 0 is unlimited")
f.BoolVar(&applyImpl.ApplyOptions.Validate, "validate", false, "validate your manifests against the Kubernetes cluster you are currently pointing at. Note that this requires access to a Kubernetes cluster to obtain information necessary for validating, like the list of available API versions")