From 0dffe83ef3299aaa3e2e17a76743ad791c40f559 Mon Sep 17 00:00:00 2001 From: Austin Abro Date: Fri, 7 Mar 2025 14:35:44 +0000 Subject: [PATCH] warnings Signed-off-by: Austin Abro --- pkg/cmd/flags.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/flags.go b/pkg/cmd/flags.go index 0fcad59fa..ed3b83a55 100644 --- a/pkg/cmd/flags.go +++ b/pkg/cmd/flags.go @@ -82,13 +82,15 @@ func (ws *waitValue) Set(s string) error { *ws = waitValue(s) return nil case "true": + Warning("--wait=true is deprecated (boolean value) and can be replaced with --wait=watcher") *ws = waitValue(kube.StatusWatcherStrategy) return nil case "false": + Warning("--wait=false is deprecated (boolean value) and can be replaced by omitting the --wait flag") *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) + return fmt.Errorf("invalid wait input %q. Valid inputs are %s, and %s", s, kube.StatusWatcherStrategy, kube.LegacyStrategy) } }