mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
refactor: remove deprecated flags
refactor: remove deprecated deleting-pods-qps deleting-pods-burst register-retry-count flags
This commit is contained in:
parent
f0791b5014
commit
c4579165f1
@ -496,9 +496,6 @@ API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,C
|
|||||||
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,CronJobControllerConfiguration,ConcurrentCronJobSyncs
|
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,CronJobControllerConfiguration,ConcurrentCronJobSyncs
|
||||||
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,DaemonSetControllerConfiguration,ConcurrentDaemonSetSyncs
|
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,DaemonSetControllerConfiguration,ConcurrentDaemonSetSyncs
|
||||||
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,DeploymentControllerConfiguration,ConcurrentDeploymentSyncs
|
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,DeploymentControllerConfiguration,ConcurrentDeploymentSyncs
|
||||||
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,DeprecatedControllerConfiguration,DeletingPodsBurst
|
|
||||||
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,DeprecatedControllerConfiguration,DeletingPodsQPS
|
|
||||||
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,DeprecatedControllerConfiguration,RegisterRetryCount
|
|
||||||
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,EndpointControllerConfiguration,ConcurrentEndpointSyncs
|
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,EndpointControllerConfiguration,ConcurrentEndpointSyncs
|
||||||
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,EndpointControllerConfiguration,EndpointUpdatesBatchPeriod
|
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,EndpointControllerConfiguration,EndpointUpdatesBatchPeriod
|
||||||
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,EndpointSliceControllerConfiguration,ConcurrentServiceEndpointSyncs
|
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,EndpointSliceControllerConfiguration,ConcurrentServiceEndpointSyncs
|
||||||
|
@ -33,14 +33,6 @@ func (o *DeprecatedControllerOptions) AddFlags(fs *pflag.FlagSet) {
|
|||||||
if o == nil {
|
if o == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.Float32Var(&o.DeletingPodsQPS, "deleting-pods-qps", 0.1, "Number of nodes per second on which pods are deleted in case of node failure.")
|
|
||||||
fs.MarkDeprecated("deleting-pods-qps", "This flag is currently no-op and will be deleted.")
|
|
||||||
fs.Int32Var(&o.DeletingPodsBurst, "deleting-pods-burst", 0, "Number of nodes on which pods are bursty deleted in case of node failure. For more details look into RateLimiter.")
|
|
||||||
fs.MarkDeprecated("deleting-pods-burst", "This flag is currently no-op and will be deleted.")
|
|
||||||
fs.Int32Var(&o.RegisterRetryCount, "register-retry-count", o.RegisterRetryCount, ""+
|
|
||||||
"The number of retries for initial node registration. Retry interval equals node-sync-period.")
|
|
||||||
fs.MarkDeprecated("register-retry-count", "This flag is currently no-op and will be deleted.")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ApplyTo fills up DeprecatedController config with options.
|
// ApplyTo fills up DeprecatedController config with options.
|
||||||
@ -49,10 +41,6 @@ func (o *DeprecatedControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.DeprecatedC
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg.DeletingPodsQPS = o.DeletingPodsQPS
|
|
||||||
cfg.DeletingPodsBurst = o.DeletingPodsBurst
|
|
||||||
cfg.RegisterRetryCount = o.RegisterRetryCount
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -266,10 +266,7 @@ func TestAddFlags(t *testing.T) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
DeprecatedFlags: &DeprecatedControllerOptions{
|
DeprecatedFlags: &DeprecatedControllerOptions{
|
||||||
&kubectrlmgrconfig.DeprecatedControllerConfiguration{
|
&kubectrlmgrconfig.DeprecatedControllerConfiguration{},
|
||||||
DeletingPodsQPS: 0.1,
|
|
||||||
RegisterRetryCount: 10,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
EndpointController: &EndpointControllerOptions{
|
EndpointController: &EndpointControllerOptions{
|
||||||
&endpointconfig.EndpointControllerConfiguration{
|
&endpointconfig.EndpointControllerConfiguration{
|
||||||
@ -534,10 +531,7 @@ func TestApplyTo(t *testing.T) {
|
|||||||
StatefulSetController: statefulsetconfig.StatefulSetControllerConfiguration{
|
StatefulSetController: statefulsetconfig.StatefulSetControllerConfiguration{
|
||||||
ConcurrentStatefulSetSyncs: 15,
|
ConcurrentStatefulSetSyncs: 15,
|
||||||
},
|
},
|
||||||
DeprecatedController: kubectrlmgrconfig.DeprecatedControllerConfiguration{
|
DeprecatedController: kubectrlmgrconfig.DeprecatedControllerConfiguration{},
|
||||||
DeletingPodsQPS: 0.1,
|
|
||||||
RegisterRetryCount: 10,
|
|
||||||
},
|
|
||||||
EndpointController: endpointconfig.EndpointControllerConfiguration{
|
EndpointController: endpointconfig.EndpointControllerConfiguration{
|
||||||
ConcurrentEndpointSyncs: 10,
|
ConcurrentEndpointSyncs: 10,
|
||||||
},
|
},
|
||||||
|
@ -134,13 +134,4 @@ type KubeControllerManagerConfiguration struct {
|
|||||||
|
|
||||||
// DeprecatedControllerConfiguration contains elements be deprecated.
|
// DeprecatedControllerConfiguration contains elements be deprecated.
|
||||||
type DeprecatedControllerConfiguration struct {
|
type DeprecatedControllerConfiguration struct {
|
||||||
// DEPRECATED: deletingPodsQps is the number of nodes per second on which pods are deleted in
|
|
||||||
// case of node failure.
|
|
||||||
DeletingPodsQPS float32
|
|
||||||
// DEPRECATED: deletingPodsBurst is the number of nodes on which pods are bursty deleted in
|
|
||||||
// case of node failure. For more details look into RateLimiter.
|
|
||||||
DeletingPodsBurst int32
|
|
||||||
// registerRetryCount is the number of retries for initial node registration.
|
|
||||||
// Retry interval equals node-sync-period.
|
|
||||||
RegisterRetryCount int32
|
|
||||||
}
|
}
|
||||||
|
@ -51,10 +51,6 @@ func addDefaultingFuncs(scheme *kruntime.Scheme) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func SetDefaults_KubeControllerManagerConfiguration(obj *kubectrlmgrconfigv1alpha1.KubeControllerManagerConfiguration) {
|
func SetDefaults_KubeControllerManagerConfiguration(obj *kubectrlmgrconfigv1alpha1.KubeControllerManagerConfiguration) {
|
||||||
if obj.DeprecatedController.RegisterRetryCount == 0 {
|
|
||||||
obj.DeprecatedController.RegisterRetryCount = 10
|
|
||||||
}
|
|
||||||
|
|
||||||
// These defaults override the recommended defaults from the componentbaseconfigv1alpha1 package that are applied automatically
|
// These defaults override the recommended defaults from the componentbaseconfigv1alpha1 package that are applied automatically
|
||||||
// These client-connection defaults are specific to the kube-controller-manager
|
// These client-connection defaults are specific to the kube-controller-manager
|
||||||
if obj.Generic.ClientConnection.QPS == 0.0 {
|
if obj.Generic.ClientConnection.QPS == 0.0 {
|
||||||
|
@ -96,9 +96,6 @@ func RegisterConversions(s *runtime.Scheme) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func autoConvert_v1alpha1_DeprecatedControllerConfiguration_To_config_DeprecatedControllerConfiguration(in *v1alpha1.DeprecatedControllerConfiguration, out *config.DeprecatedControllerConfiguration, s conversion.Scope) error {
|
func autoConvert_v1alpha1_DeprecatedControllerConfiguration_To_config_DeprecatedControllerConfiguration(in *v1alpha1.DeprecatedControllerConfiguration, out *config.DeprecatedControllerConfiguration, s conversion.Scope) error {
|
||||||
out.DeletingPodsQPS = in.DeletingPodsQPS
|
|
||||||
out.DeletingPodsBurst = in.DeletingPodsBurst
|
|
||||||
out.RegisterRetryCount = in.RegisterRetryCount
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,9 +105,6 @@ func Convert_v1alpha1_DeprecatedControllerConfiguration_To_config_DeprecatedCont
|
|||||||
}
|
}
|
||||||
|
|
||||||
func autoConvert_config_DeprecatedControllerConfiguration_To_v1alpha1_DeprecatedControllerConfiguration(in *config.DeprecatedControllerConfiguration, out *v1alpha1.DeprecatedControllerConfiguration, s conversion.Scope) error {
|
func autoConvert_config_DeprecatedControllerConfiguration_To_v1alpha1_DeprecatedControllerConfiguration(in *config.DeprecatedControllerConfiguration, out *v1alpha1.DeprecatedControllerConfiguration, s conversion.Scope) error {
|
||||||
out.DeletingPodsQPS = in.DeletingPodsQPS
|
|
||||||
out.DeletingPodsBurst = in.DeletingPodsBurst
|
|
||||||
out.RegisterRetryCount = in.RegisterRetryCount
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
27
pkg/generated/openapi/zz_generated.openapi.go
generated
27
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -48459,33 +48459,6 @@ func schema_k8sio_kube_controller_manager_config_v1alpha1_DeprecatedControllerCo
|
|||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "DeprecatedControllerConfiguration contains elements be deprecated.",
|
Description: "DeprecatedControllerConfiguration contains elements be deprecated.",
|
||||||
Type: []string{"object"},
|
Type: []string{"object"},
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"DeletingPodsQPS": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "DEPRECATED: deletingPodsQps is the number of nodes per second on which pods are deleted in case of node failure.",
|
|
||||||
Default: 0,
|
|
||||||
Type: []string{"number"},
|
|
||||||
Format: "float",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"DeletingPodsBurst": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "DEPRECATED: deletingPodsBurst is the number of nodes on which pods are bursty deleted in case of node failure. For more details look into RateLimiter.",
|
|
||||||
Default: 0,
|
|
||||||
Type: []string{"integer"},
|
|
||||||
Format: "int32",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"RegisterRetryCount": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "registerRetryCount is the number of retries for initial node registration. Retry interval equals node-sync-period.",
|
|
||||||
Default: 0,
|
|
||||||
Type: []string{"integer"},
|
|
||||||
Format: "int32",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Required: []string{"DeletingPodsQPS", "DeletingPodsBurst", "RegisterRetryCount"},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -237,15 +237,6 @@ type StatefulSetControllerConfiguration struct {
|
|||||||
|
|
||||||
// DeprecatedControllerConfiguration contains elements be deprecated.
|
// DeprecatedControllerConfiguration contains elements be deprecated.
|
||||||
type DeprecatedControllerConfiguration struct {
|
type DeprecatedControllerConfiguration struct {
|
||||||
// DEPRECATED: deletingPodsQps is the number of nodes per second on which pods are deleted in
|
|
||||||
// case of node failure.
|
|
||||||
DeletingPodsQPS float32
|
|
||||||
// DEPRECATED: deletingPodsBurst is the number of nodes on which pods are bursty deleted in
|
|
||||||
// case of node failure. For more details look into RateLimiter.
|
|
||||||
DeletingPodsBurst int32
|
|
||||||
// registerRetryCount is the number of retries for initial node registration.
|
|
||||||
// Retry interval equals node-sync-period.
|
|
||||||
RegisterRetryCount int32
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// EndpointControllerConfiguration contains elements describing EndpointController.
|
// EndpointControllerConfiguration contains elements describing EndpointController.
|
||||||
|
Loading…
Reference in New Issue
Block a user