From 68f72e5c3fb9c2bc6486a29a6eb5522a05ea8f81 Mon Sep 17 00:00:00 2001 From: Austin Abro Date: Mon, 3 Mar 2025 19:56:00 +0000 Subject: [PATCH] hook only strategy when wait=false Signed-off-by: Austin Abro --- pkg/cmd/flags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/flags.go b/pkg/cmd/flags.go index 10c7e9714..044b19e04 100644 --- a/pkg/cmd/flags.go +++ b/pkg/cmd/flags.go @@ -85,7 +85,7 @@ func (ws *waitValue) Set(s string) error { *ws = waitValue(kube.StatusWatcherStrategy) return nil case "false": - *ws = "" + *ws = waitValue(kube.HookOnlyStrategy) return nil default: return fmt.Errorf("invalid wait input %q. Valid inputs are true, false, %s, and %s", s, kube.StatusWatcherStrategy, kube.LegacyStrategy)