Revert "Merge pull request #30090 from mtaufen/dynamic-kubelet-restart"
This reverts commitfe808ec2a4
, reversing changes made tof297ea966e
.
This commit is contained in:
@@ -38,16 +38,14 @@ const (
|
||||
// specification of gates. Examples:
|
||||
// AllAlpha=false,NewFeature=true will result in newFeature=true
|
||||
// AllAlpha=true,NewFeature=false will result in newFeature=false
|
||||
allAlphaGate = "AllAlpha"
|
||||
dynamicKubeletConfig = "DynamicKubeletConfig"
|
||||
allAlphaGate = "AllAlpha"
|
||||
)
|
||||
|
||||
var (
|
||||
// Default values for recorded features. Every new feature gate should be
|
||||
// represented here.
|
||||
knownFeatures = map[string]featureSpec{
|
||||
allAlphaGate: {false, alpha},
|
||||
dynamicKubeletConfig: {false, alpha},
|
||||
allAlphaGate: {false, alpha},
|
||||
}
|
||||
|
||||
// Special handling for a few gates.
|
||||
@@ -88,7 +86,6 @@ type FeatureGate interface {
|
||||
// MyFeature() bool
|
||||
|
||||
// TODO: Define accessors for each non-API alpha feature.
|
||||
DynamicKubeletConfig() bool
|
||||
}
|
||||
|
||||
// featureGate implements FeatureGate as well as pflag.Value for flag parsing.
|
||||
@@ -157,11 +154,6 @@ func (f *featureGate) Type() string {
|
||||
return "mapStringBool"
|
||||
}
|
||||
|
||||
// DynamicKubeletConfig returns value for dynamicKubeletConfig
|
||||
func (f *featureGate) DynamicKubeletConfig() bool {
|
||||
return f.lookup(dynamicKubeletConfig)
|
||||
}
|
||||
|
||||
func (f *featureGate) lookup(key string) bool {
|
||||
defaultValue := f.known[key].enabled
|
||||
if f.enabled != nil {
|
||||
|
Reference in New Issue
Block a user