From 9a366b447452e78b092b1a5267d7efc9bbe74f11 Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Wed, 10 Sep 2025 21:21:37 +0200 Subject: [PATCH] Fix deprecation warning Error reported in CI https://github.com/helm/helm/actions/runs/17623700524/job/50075176523?pr=31231 ``` Error: cmd/helm/root.go:165:2: SA1019: flags.ParseErrorsWhitelist is deprecated: use [FlagSet.ParseErrorsAllowlist] instead. This field will be removed in a future release. (staticcheck) ``` Close: #31231 Signed-off-by: Benoit Tigeot --- cmd/helm/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/helm/root.go b/cmd/helm/root.go index 23fe9d806..4d2f5a466 100644 --- a/cmd/helm/root.go +++ b/cmd/helm/root.go @@ -162,7 +162,7 @@ func newRootCmd(actionConfig *action.Configuration, out io.Writer, args []string // those errors will be caught later during the call to cmd.Execution. // This call is required to gather configuration information prior to // execution. - flags.ParseErrorsWhitelist.UnknownFlags = true + flags.ParseErrorsAllowlist.UnknownFlags = true flags.Parse(args) registryClient, err := newDefaultRegistryClient(false, "", "")