mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Drop some of our flag stuff which isn't needed
This commit is contained in:
parent
6d7986993a
commit
7162baa4b8
@ -273,10 +273,6 @@ func (f *Factory) BindFlags(flags *pflag.FlagSet) {
|
||||
// any flags defined by external projects (not part of pflags)
|
||||
flags.AddGoFlagSet(flag.CommandLine)
|
||||
|
||||
// This is necessary as github.com/spf13/cobra doesn't support "global"
|
||||
// pflags currently. See https://github.com/spf13/cobra/issues/44.
|
||||
flags.AddFlagSet(pflag.CommandLine)
|
||||
|
||||
// Hack for global access to validation flag.
|
||||
// TODO: Refactor out after configuration flag overhaul.
|
||||
if f.flags.Lookup("validate") == nil {
|
||||
|
Loading…
Reference in New Issue
Block a user