mirror of
https://github.com/helm/helm.git
synced 2026-03-21 18:10:33 -04:00
docs: document uninstall using cascade foreground flag
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
This commit is contained in:
parent
50546ef665
commit
e70d59de7c
1 changed files with 4 additions and 1 deletions
|
|
@ -35,6 +35,9 @@ as well as the release history, freeing it up for future use.
|
|||
|
||||
Use the '--dry-run' flag to see which releases will be uninstalled without actually
|
||||
uninstalling them.
|
||||
|
||||
Use '--cascade foreground' with '--wait' to ensure resources with finalizers
|
||||
are fully deleted before the command returns.
|
||||
`
|
||||
|
||||
func newUninstallCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
|
||||
|
|
@ -76,7 +79,7 @@ func newUninstallCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
|
|||
f.BoolVar(&client.DisableHooks, "no-hooks", false, "prevent hooks from running during uninstallation")
|
||||
f.BoolVar(&client.IgnoreNotFound, "ignore-not-found", false, `Treat "release not found" as a successful uninstall`)
|
||||
f.BoolVar(&client.KeepHistory, "keep-history", false, "remove all associated resources and mark the release as deleted, but retain the release history")
|
||||
f.StringVar(&client.DeletionPropagation, "cascade", "background", "Must be \"background\", \"orphan\", or \"foreground\". Selects the deletion cascading strategy for the dependents. Defaults to background.")
|
||||
f.StringVar(&client.DeletionPropagation, "cascade", "background", "Must be \"background\", \"orphan\", or \"foreground\". Selects the deletion cascading strategy for the dependents. Defaults to background. Use \"foreground\" with --wait to ensure resources with finalizers are fully deleted before returning.")
|
||||
f.DurationVar(&client.Timeout, "timeout", 300*time.Second, "time to wait for any individual Kubernetes operation (like Jobs for hooks)")
|
||||
f.StringVar(&client.Description, "description", "", "add a custom description")
|
||||
AddWaitFlag(cmd, &client.WaitStrategy)
|
||||
|
|
|
|||
Loading…
Reference in a new issue