Fix deprecation warning for spf13/pflag from 1.0.7 to 1.0.10

Close: #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)
```

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
pull/31277/head
Benoit Tigeot 1 week ago
parent 5445b6587b
commit 99e5fce71a
No known key found for this signature in database
GPG Key ID: 8E6D4FC8AEBDA62C

@ -173,7 +173,7 @@ func newRootCmdWithConfig(actionConfig *action.Configuration, out io.Writer, arg
// those errors will be caught later during the call to cmd.Execution. // those errors will be caught later during the call to cmd.Execution.
// This call is required to gather configuration information prior to // This call is required to gather configuration information prior to
// execution. // execution.
flags.ParseErrorsWhitelist.UnknownFlags = true flags.ParseErrorsAllowlist.UnknownFlags = true
flags.Parse(args) flags.Parse(args)
logSetup(settings.Debug) logSetup(settings.Debug)

Loading…
Cancel
Save