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:
Kubernetes Submit Queue 2016-09-07 11:33:03 -07:00 committed by GitHub
commit c6919a0187

View File

@ -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))
}
sort.Strings(known)
fs.Var(f, flagName, ""+
"A set of key=value pairs that describe feature gates for alpha/experimental features. "+
"Options are:\n"+strings.Join(known, "\n"))