Skip to content

Commit 8535e9f

Browse files
committed
Avoid confusion between --wait (watcher) and no --wait (hookOnly)
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
1 parent 1836f37 commit 8535e9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/cmd/flags.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ func addValueOptionsFlags(f *pflag.FlagSet, v *values.Options) {
5757

5858
func AddWaitFlag(cmd *cobra.Command, wait *kube.WaitStrategy) {
5959
cmd.Flags().Var(
60-
newWaitValue(kube.HookOnlyStrategy, wait),
60+
newWaitValue(kube.StatusWatcherStrategy, wait),
6161
"wait",
62-
"wait until resources are ready (up to --timeout). Values: 'watcher' (default), 'legacy', and 'hookOnly'",
62+
"wait until resources are ready (up to --timeout). Values: 'watcher' (default), 'hookOnly', and 'legacy'",
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)