|
|
|
@ -59,7 +59,7 @@ func AddWaitFlag(cmd *cobra.Command, wait *kube.WaitStrategy) {
|
|
|
|
cmd.Flags().Var(
|
|
|
|
cmd.Flags().Var(
|
|
|
|
newWaitValue(kube.HookOnlyStrategy, wait),
|
|
|
|
newWaitValue(kube.HookOnlyStrategy, wait),
|
|
|
|
"wait",
|
|
|
|
"wait",
|
|
|
|
"if specified, wait until resources are ready (up to --timeout). Values: 'watcher' (default), 'hookOnly', and 'legacy'.",
|
|
|
|
"if specified, wait until resources are ready (up to --timeout). Values: 'watcher', 'hookOnly', and 'legacy'.",
|
|
|
|
)
|
|
|
|
)
|
|
|
|
// Sets the strategy to use the watcher strategy if `--wait` is used without an argument
|
|
|
|
// Sets the strategy to use the watcher strategy if `--wait` is used without an argument
|
|
|
|
cmd.Flags().Lookup("wait").NoOptDefVal = string(kube.StatusWatcherStrategy)
|
|
|
|
cmd.Flags().Lookup("wait").NoOptDefVal = string(kube.StatusWatcherStrategy)
|
|
|
|
|