From 81cf84b366d6e42d28e7c9fa7926b17a1aa346bd Mon Sep 17 00:00:00 2001 From: Janet Kuo Date: Tue, 14 Aug 2018 15:31:32 -0700 Subject: [PATCH] Make number of workers configurable Kubernetes-commit: cbdc9b671f33b0f0679e790cc462b25d1476a3af --- config/v1alpha1/types.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/v1alpha1/types.go b/config/v1alpha1/types.go index 5bcfade..2e9f45b 100644 --- a/config/v1alpha1/types.go +++ b/config/v1alpha1/types.go @@ -145,6 +145,9 @@ type KubeControllerManagerConfiguration struct { // ServiceControllerConfiguration holds configuration for ServiceController // related features. ServiceController ServiceControllerConfiguration + // TTLAfterFinishedControllerConfiguration holds configuration for + // TTLAfterFinishedController related features. + TTLAfterFinishedController TTLAfterFinishedControllerConfiguration } // GenericControllerManagerConfiguration holds configuration for a generic controller-manager. @@ -438,3 +441,10 @@ type ServiceControllerConfiguration struct { // management, but more CPU (and network) load. ConcurrentServiceSyncs int32 } + +// TTLAfterFinishedControllerConfiguration contains elements describing TTLAfterFinishedController. +type TTLAfterFinishedControllerConfiguration struct { + // concurrentTTLSyncs is the number of TTL-after-finished collector workers that are + // allowed to sync concurrently. + ConcurrentTTLSyncs int32 +}