diff --git a/pkg/server/options/server_run_options.go b/pkg/server/options/server_run_options.go index ef2a0db43..95c39b65d 100644 --- a/pkg/server/options/server_run_options.go +++ b/pkg/server/options/server_run_options.go @@ -25,7 +25,6 @@ import ( "k8s.io/apiserver/pkg/admission" "k8s.io/apiserver/pkg/server" utilfeature "k8s.io/apiserver/pkg/util/feature" - utilflag "k8s.io/apiserver/pkg/util/flag" // add the generic feature gates _ "k8s.io/apiserver/pkg/features" @@ -53,7 +52,6 @@ type ServerRunOptions struct { MaxRequestsInFlight int MaxMutatingRequestsInFlight int MinRequestTimeout int - RuntimeConfig utilflag.ConfigurationMap TargetRAMMB int WatchCacheSizes []string } @@ -72,7 +70,6 @@ func NewServerRunOptions() *ServerRunOptions { MaxRequestsInFlight: defaults.MaxRequestsInFlight, MaxMutatingRequestsInFlight: defaults.MaxMutatingRequestsInFlight, MinRequestTimeout: defaults.MinRequestTimeout, - RuntimeConfig: make(utilflag.ConfigurationMap), } } @@ -195,12 +192,6 @@ func (s *ServerRunOptions) AddUniversalFlags(fs *pflag.FlagSet) { "handler, which picks a randomized value above this number as the connection timeout, "+ "to spread out load.") - fs.Var(&s.RuntimeConfig, "runtime-config", ""+ - "A set of key=value pairs that describe runtime configuration that may be passed "+ - "to apiserver. apis/ key can be used to turn on/off specific api versions. "+ - "apis// can be used to turn on/off specific resources. api/all and "+ - "api/legacy are special keys to control all and legacy api versions respectively.") - fs.StringSliceVar(&s.WatchCacheSizes, "watch-cache-sizes", s.WatchCacheSizes, ""+ "List of watch cache sizes for every resource (pods, nodes, etc.), comma separated. "+ "The individual override format: resource#size, where size is a number. It takes effect "+