This change adds a new flag to the install and upgrade commands in
the Helm client and properties to the install and upgrade action.
The new flag is --hide-secret and can only be used with the
--dry-run flag.
The --dry-run flag is designed to send all chart rendered manifests to
stdout so that they can be inspected.
When the --hide-secret flag is used the Secret content is removed from
the output.
Signed-off-by: Matt Farina <matt.farina@suse.com>
f.BoolVarP(&client.Install,"install","i",false,"if a release by this name doesn't already exist, run an install")
f.BoolVarP(&client.Install,"install","i",false,"if a release by this name doesn't already exist, run an install")
f.BoolVar(&client.Devel,"devel",false,"use development versions, too. Equivalent to version '>0.0.0-0'. If --version is set, this is ignored")
f.BoolVar(&client.Devel,"devel",false,"use development versions, too. Equivalent to version '>0.0.0-0'. If --version is set, this is ignored")
f.StringVar(&client.DryRunOption,"dry-run","","simulate an install. If --dry-run is set with no option being specified or as '--dry-run=client', it will not attempt cluster connections. Setting '--dry-run=server' allows attempting cluster connections.")
f.StringVar(&client.DryRunOption,"dry-run","","simulate an install. If --dry-run is set with no option being specified or as '--dry-run=client', it will not attempt cluster connections. Setting '--dry-run=server' allows attempting cluster connections.")
f.BoolVar(&client.HideSecret,"hide-secret",false,"hide Kubernetes Secrets when also using the --dry-run flag")
f.Lookup("dry-run").NoOptDefVal="client"
f.Lookup("dry-run").NoOptDefVal="client"
f.BoolVar(&client.Recreate,"recreate-pods",false,"performs pods restart for the resource if applicable")
f.BoolVar(&client.Recreate,"recreate-pods",false,"performs pods restart for the resource if applicable")
f.MarkDeprecated("recreate-pods","functionality will no longer be updated. Consult the documentation for other methods to recreate pods")
f.MarkDeprecated("recreate-pods","functionality will no longer be updated. Consult the documentation for other methods to recreate pods")