Skip to content

Commit 95e1ee1

Browse files
committed
Increase documentation of --wait flag
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
1 parent 5cbd9b3 commit 95e1ee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func AddWaitFlag(cmd *cobra.Command, wait *kube.WaitStrategy) {
5959
cmd.Flags().Var(
6060
newWaitValue(kube.HookOnlyStrategy, wait),
6161
"wait",
62-
"if specified, will wait until all resources are in the expected state before marking the operation as successful. It will wait for as long as --timeout. Valid inputs are 'watcher' and 'legacy'",
62+
"wait until resources are ready (up to --timeout). Values: 'watcher' (default), 'legacy'. '--wait' without value = 'watcher'. Booleans deprecated; '--wait=false' does hook-only.",
6363
)
6464
// Sets the strategy to use the watcher strategy if `--wait` is used without an argument
6565
cmd.Flags().Lookup("wait").NoOptDefVal = string(kube.StatusWatcherStrategy)

0 commit comments

Comments
 (0)