Skip to content

Commit c74aab6

Browse files
committed
RC/RS: Mark lookup-cache-size flags as deprecated.
1 parent f4ee44e commit c74aab6

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

cmd/kube-controller-manager/app/options/options.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,13 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet, allControllers []string, disabled
131131
fs.Int32Var(&s.ConcurrentDeploymentSyncs, "concurrent-deployment-syncs", s.ConcurrentDeploymentSyncs, "The number of deployment objects that are allowed to sync concurrently. Larger number = more responsive deployments, but more CPU (and network) load")
132132
fs.Int32Var(&s.ConcurrentNamespaceSyncs, "concurrent-namespace-syncs", s.ConcurrentNamespaceSyncs, "The number of namespace objects that are allowed to sync concurrently. Larger number = more responsive namespace termination, but more CPU (and network) load")
133133
fs.Int32Var(&s.ConcurrentSATokenSyncs, "concurrent-serviceaccount-token-syncs", s.ConcurrentSATokenSyncs, "The number of service account token objects that are allowed to sync concurrently. Larger number = more responsive token generation, but more CPU (and network) load")
134+
// TODO(#43388): Remove the following flag 6 months after v1.6.0 is released.
134135
fs.Int32Var(&s.LookupCacheSizeForRC, "replication-controller-lookup-cache-size", s.LookupCacheSizeForRC, "This flag is deprecated and will be removed in future releases. ReplicationController no longer requires a lookup cache.")
136+
fs.MarkDeprecated("replication-controller-lookup-cache-size", "This flag is deprecated and will be removed in future releases. ReplicationController no longer requires a lookup cache.")
137+
// TODO(#43388): Remove the following flag 6 months after v1.6.0 is released.
135138
fs.Int32Var(&s.LookupCacheSizeForRS, "replicaset-lookup-cache-size", s.LookupCacheSizeForRS, "This flag is deprecated and will be removed in future releases. ReplicaSet no longer requires a lookup cache.")
136-
// TODO: Remove the following flag 6 months after v1.6.0 is released.
139+
fs.MarkDeprecated("replicaset-lookup-cache-size", "This flag is deprecated and will be removed in future releases. ReplicaSet no longer requires a lookup cache.")
140+
// TODO(#43388): Remove the following flag 6 months after v1.6.0 is released.
137141
fs.Int32Var(&s.LookupCacheSizeForDaemonSet, "daemonset-lookup-cache-size", s.LookupCacheSizeForDaemonSet, "This flag is deprecated and will be removed in future releases. DaemonSet no longer requires a lookup cache.")
138142
fs.MarkDeprecated("daemonset-lookup-cache-size", "This flag is deprecated and will be removed in future releases. DaemonSet no longer requires a lookup cache.")
139143
fs.DurationVar(&s.ServiceSyncPeriod.Duration, "service-sync-period", s.ServiceSyncPeriod.Duration, "The period for syncing services with their external load balancers")

pkg/apis/componentconfig/types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,12 +684,17 @@ type KubeControllerManagerConfiguration struct {
684684
ConcurrentSATokenSyncs int32
685685
// lookupCacheSizeForRC is the size of lookup cache for replication controllers.
686686
// Larger number = more responsive replica management, but more MEM load.
687+
// TODO(#43388): Remove the following flag 6 months after v1.6.0 is released.
688+
// DEPRECATED: This is no longer used.
687689
LookupCacheSizeForRC int32
688690
// lookupCacheSizeForRS is the size of lookup cache for replicatsets.
689691
// Larger number = more responsive replica management, but more MEM load.
692+
// TODO(#43388): Remove the following flag 6 months after v1.6.0 is released.
693+
// DEPRECATED: This is no longer used.
690694
LookupCacheSizeForRS int32
691695
// lookupCacheSizeForDaemonSet is the size of lookup cache for daemonsets.
692696
// Larger number = more responsive daemonset, but more MEM load.
697+
// TODO(#43388): Remove the following flag 6 months after v1.6.0 is released.
693698
// DEPRECATED: This is no longer used.
694699
LookupCacheSizeForDaemonSet int32
695700
// serviceSyncPeriod is the period for syncing services with their external

0 commit comments

Comments
 (0)