mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Merge pull request #38186 from sttts/sttts-remove-MasterServiceNamespace
Automatic merge from submit-queue (batch tested with PRs 37032, 38119, 38186, 38200, 38139) Remove genericapiserver.Options.MasterServiceNamespace Deprecated and not used anymore.
This commit is contained in:
commit
224893c5dc
@ -56,7 +56,6 @@ type ServerRunOptions struct {
|
|||||||
ExternalHost string
|
ExternalHost string
|
||||||
KubernetesServiceNodePort int
|
KubernetesServiceNodePort int
|
||||||
MasterCount int
|
MasterCount int
|
||||||
MasterServiceNamespace string
|
|
||||||
MaxRequestsInFlight int
|
MaxRequestsInFlight int
|
||||||
MaxMutatingRequestsInFlight int
|
MaxMutatingRequestsInFlight int
|
||||||
MinRequestTimeout int
|
MinRequestTimeout int
|
||||||
@ -83,7 +82,6 @@ func NewServerRunOptions() *ServerRunOptions {
|
|||||||
EnableContentionProfiling: false,
|
EnableContentionProfiling: false,
|
||||||
EnableWatchCache: true,
|
EnableWatchCache: true,
|
||||||
MasterCount: 1,
|
MasterCount: 1,
|
||||||
MasterServiceNamespace: api.NamespaceDefault,
|
|
||||||
MaxRequestsInFlight: 400,
|
MaxRequestsInFlight: 400,
|
||||||
MaxMutatingRequestsInFlight: 200,
|
MaxMutatingRequestsInFlight: 200,
|
||||||
MinRequestTimeout: 1800,
|
MinRequestTimeout: 1800,
|
||||||
@ -245,7 +243,8 @@ func (s *ServerRunOptions) AddUniversalFlags(fs *pflag.FlagSet) {
|
|||||||
fs.IntVar(&s.MasterCount, "apiserver-count", s.MasterCount,
|
fs.IntVar(&s.MasterCount, "apiserver-count", s.MasterCount,
|
||||||
"The number of apiservers running in the cluster.")
|
"The number of apiservers running in the cluster.")
|
||||||
|
|
||||||
fs.StringVar(&s.MasterServiceNamespace, "master-service-namespace", s.MasterServiceNamespace, ""+
|
deprecatedMasterServiceNamespace := api.NamespaceDefault
|
||||||
|
fs.StringVar(&deprecatedMasterServiceNamespace, "master-service-namespace", deprecatedMasterServiceNamespace, ""+
|
||||||
"DEPRECATED: the namespace from which the kubernetes master services should be injected into pods.")
|
"DEPRECATED: the namespace from which the kubernetes master services should be injected into pods.")
|
||||||
|
|
||||||
fs.IntVar(&s.MaxRequestsInFlight, "max-requests-inflight", s.MaxRequestsInFlight, ""+
|
fs.IntVar(&s.MaxRequestsInFlight, "max-requests-inflight", s.MaxRequestsInFlight, ""+
|
||||||
|
Loading…
Reference in New Issue
Block a user