From 8535e9f4ab5c143fcbd429f45a0f15cf510a0cc0 Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Sat, 25 Oct 2025 13:34:31 +0200 Subject: [PATCH] Avoid confusion between `--wait` (watcher) and no --wait (hookOnly) Signed-off-by: Benoit Tigeot --- pkg/cmd/flags.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/flags.go b/pkg/cmd/flags.go index 55633e62b..ee4806280 100644 --- a/pkg/cmd/flags.go +++ b/pkg/cmd/flags.go @@ -57,9 +57,9 @@ func addValueOptionsFlags(f *pflag.FlagSet, v *values.Options) { func AddWaitFlag(cmd *cobra.Command, wait *kube.WaitStrategy) { cmd.Flags().Var( - newWaitValue(kube.HookOnlyStrategy, wait), + newWaitValue(kube.StatusWatcherStrategy, wait), "wait", - "wait until resources are ready (up to --timeout). Values: 'watcher' (default), 'legacy', and 'hookOnly'", + "wait until resources are ready (up to --timeout). Values: 'watcher' (default), 'hookOnly', and 'legacy'", ) // Sets the strategy to use the watcher strategy if `--wait` is used without an argument cmd.Flags().Lookup("wait").NoOptDefVal = string(kube.StatusWatcherStrategy)