From a5e110fccd9b8ce6f0dc110d2c83ee079f15e8e4 Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Sat, 25 Oct 2025 13:25:22 +0200 Subject: [PATCH] Make wait strategy selection more obvious It is not clear enough that you need to set --wait=false for a hook only strategy. 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 4f416ddf0..1aef6430a 100644 --- a/pkg/cmd/flags.go +++ b/pkg/cmd/flags.go @@ -81,7 +81,7 @@ func (ws *waitValue) String() string { func (ws *waitValue) Set(s string) error { switch s { - case string(kube.StatusWatcherStrategy), string(kube.LegacyStrategy): + case string(kube.StatusWatcherStrategy), string(kube.LegacyStrategy), string(kube.HookOnlyStrategy): *ws = waitValue(s) return nil case "true": @@ -93,7 +93,7 @@ func (ws *waitValue) Set(s string) error { *ws = waitValue(kube.HookOnlyStrategy) return nil default: - return fmt.Errorf("invalid wait input %q. Valid inputs are %s, and %s", s, kube.StatusWatcherStrategy, kube.LegacyStrategy) + return fmt.Errorf("invalid wait input %q. Valid inputs are %s, %s, and %s", s, kube.StatusWatcherStrategy, kube.LegacyStrategy, kube.HookOnlyStrategy) } }