docs(install): clarify the --replace flag (#7089)

* docs(install): clarify the --replace flag

The description of the `--replace` flag was unclear, as it can’t be
used to replace active releases.

Signed-off-by: Remco Haszing <remcohaszing@gmail.com>

* docs(install): reword replace flag description

Signed-off-by: Remco Haszing <remcohaszing@gmail.com>
pull/7122/head
Remco Haszing 5 years ago committed by Martin Hickey
parent 8f87900860
commit af59e32654

@ -130,7 +130,7 @@ func newInstallCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
func addInstallFlags(f *pflag.FlagSet, client *action.Install, valueOpts *values.Options) {
f.BoolVar(&client.DryRun, "dry-run", false, "simulate an install")
f.BoolVar(&client.DisableHooks, "no-hooks", false, "prevent hooks from running during install")
f.BoolVar(&client.Replace, "replace", false, "re-use the given name, even if that name is already used. This is unsafe in production")
f.BoolVar(&client.Replace, "replace", false, "re-use the given name, only if that name is a deleted release which remains in the history. This is unsafe in production")
f.DurationVar(&client.Timeout, "timeout", 300*time.Second, "time to wait for any individual Kubernetes operation (like Jobs for hooks)")
f.BoolVar(&client.Wait, "wait", false, "if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment, StatefulSet, or ReplicaSet are in a ready state before marking the release as successful. It will wait for as long as --timeout")
f.BoolVarP(&client.GenerateName, "generate-name", "g", false, "generate the name (and omit the NAME parameter)")

Loading…
Cancel
Save