mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
remove unused option deployment-controller-sync-period for deployment controller
This commit is contained in:
@@ -34,8 +34,6 @@ func (o *DeploymentControllerOptions) AddFlags(fs *pflag.FlagSet) {
|
||||
}
|
||||
|
||||
fs.Int32Var(&o.ConcurrentDeploymentSyncs, "concurrent-deployment-syncs", o.ConcurrentDeploymentSyncs, "The number of deployment objects that are allowed to sync concurrently. Larger number = more responsive deployments, but more CPU (and network) load")
|
||||
fs.DurationVar(&o.DeploymentControllerSyncPeriod.Duration, "deployment-controller-sync-period", o.DeploymentControllerSyncPeriod.Duration, "Period for syncing the deployments.")
|
||||
fs.MarkDeprecated("deployment-controller-sync-period", "This flag is currently no-op and will be removed in v1.24.")
|
||||
}
|
||||
|
||||
// ApplyTo fills up DeploymentController config with options.
|
||||
@@ -45,7 +43,6 @@ func (o *DeploymentControllerOptions) ApplyTo(cfg *deploymentconfig.DeploymentCo
|
||||
}
|
||||
|
||||
cfg.ConcurrentDeploymentSyncs = o.ConcurrentDeploymentSyncs
|
||||
cfg.DeploymentControllerSyncPeriod = o.DeploymentControllerSyncPeriod
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -97,7 +97,6 @@ var args = []string{
|
||||
"--contention-profiling=true",
|
||||
"--controller-start-interval=2m",
|
||||
"--controllers=foo,bar",
|
||||
"--deployment-controller-sync-period=45s",
|
||||
"--disable-attach-detach-reconcile-sync=true",
|
||||
"--enable-dynamic-provisioning=false",
|
||||
"--enable-garbage-collector=false",
|
||||
@@ -258,8 +257,7 @@ func TestAddFlags(t *testing.T) {
|
||||
},
|
||||
DeploymentController: &DeploymentControllerOptions{
|
||||
&deploymentconfig.DeploymentControllerConfiguration{
|
||||
ConcurrentDeploymentSyncs: 10,
|
||||
DeploymentControllerSyncPeriod: metav1.Duration{Duration: 45 * time.Second},
|
||||
ConcurrentDeploymentSyncs: 10,
|
||||
},
|
||||
},
|
||||
StatefulSetController: &StatefulSetControllerOptions{
|
||||
@@ -531,8 +529,7 @@ func TestApplyTo(t *testing.T) {
|
||||
ConcurrentDaemonSetSyncs: 2,
|
||||
},
|
||||
DeploymentController: deploymentconfig.DeploymentControllerConfiguration{
|
||||
ConcurrentDeploymentSyncs: 10,
|
||||
DeploymentControllerSyncPeriod: metav1.Duration{Duration: 45 * time.Second},
|
||||
ConcurrentDeploymentSyncs: 10,
|
||||
},
|
||||
StatefulSetController: statefulsetconfig.StatefulSetControllerConfiguration{
|
||||
ConcurrentStatefulSetSyncs: 15,
|
||||
|
||||
Reference in New Issue
Block a user