From 52a282832fad5691bbcfb28cf8c3dfade914a597 Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Mon, 27 Oct 2025 14:58:40 +0100 Subject: [PATCH] Do not change the default waiting strategy when --wait is not set It is too much a breaking change for a new RC of beta V4. See comment: https://github.com/helm/helm/pull/31421#discussion_r2465121438 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 ee4806280..5b8b8cf21 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.StatusWatcherStrategy, wait), + newWaitValue(kube.HookOnlyStrategy, wait), "wait", - "wait until resources are ready (up to --timeout). Values: 'watcher' (default), 'hookOnly', and 'legacy'", + "wait until resources are ready (up to --timeout). Values: 'watcher', 'hookOnly' (default), 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)