refactor: remove deprecated options of config flags (#560)

This commit is contained in:
naison
2025-04-24 22:44:20 +08:00
committed by GitHub
parent 6a8a197f48
commit 28657e3832
7 changed files with 8 additions and 8 deletions

View File

@@ -162,7 +162,7 @@ func SshJump(ctx context.Context, conf *SshConfig, flags *pflag.FlagSet, print b
}
}()
configFlags := genericclioptions.NewConfigFlags(true).WithDeprecatedPasswordFlag()
configFlags := genericclioptions.NewConfigFlags(true)
if conf.RemoteKubeconfig != "" || (flags != nil && flags.Changed("remote-kubeconfig")) {
var stdout []byte