mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Merge pull request #32181 from smarterclayton/stable_flags
Automatic merge from submit-queue Feature gate is not stable sorted - docs change each gen Also... why are the feature flags defined *in* pkg/util/config which has nothing to do with general Kube? Flags should be defined statically in a subpackage of the kubelet (if they are kubelet feature flags) or in pkg/kubernetes/features or something somewhere else generic.
This commit is contained in:
commit
c6919a0187
@ -216,6 +216,7 @@ func (f *featureGate) AddFlag(fs *pflag.FlagSet) {
|
|||||||
}
|
}
|
||||||
known = append(known, fmt.Sprintf("%s=true|false (%sdefault=%t)", k, pre, v.enabled))
|
known = append(known, fmt.Sprintf("%s=true|false (%sdefault=%t)", k, pre, v.enabled))
|
||||||
}
|
}
|
||||||
|
sort.Strings(known)
|
||||||
fs.Var(f, flagName, ""+
|
fs.Var(f, flagName, ""+
|
||||||
"A set of key=value pairs that describe feature gates for alpha/experimental features. "+
|
"A set of key=value pairs that describe feature gates for alpha/experimental features. "+
|
||||||
"Options are:\n"+strings.Join(known, "\n"))
|
"Options are:\n"+strings.Join(known, "\n"))
|
||||||
|
Loading…
Reference in New Issue
Block a user