MCPcopy Index your code
hub / github.com/helm/helm / AddWaitFlag

Function AddWaitFlag

pkg/cmd/flags.go:59–66  ·  view source on GitHub ↗
(cmd *cobra.Command, wait *kube.WaitStrategy)

Source from the content-addressed store, hash-verified

57}
58
59func AddWaitFlag(cmd *cobra.Command, wait *kube.WaitStrategy) {
60 cmd.Flags().Var(
61 newWaitValue(kube.HookOnlyStrategy, wait),
62 "wait",
63 "wait until resources are ready (up to --timeout). Use '--wait' alone for 'watcher' strategy, or specify one of: 'watcher', 'hookOnly', 'legacy'. Default when flag is omitted: 'hookOnly'.",
64 )
65 cmd.Flags().Lookup("wait").NoOptDefVal = string(kube.StatusWatcherStrategy)
66}
67
68type waitValue kube.WaitStrategy
69

Callers 4

newUninstallCmdFunction · 0.85
addInstallFlagsFunction · 0.85
newUpgradeCmdFunction · 0.85
newRollbackCmdFunction · 0.85

Calls 1

newWaitValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…