From 2c92bd60c2052524675b759d5d7ee8cc7cbe89ae Mon Sep 17 00:00:00 2001 From: Janet Kuo Date: Tue, 14 Aug 2018 15:31:32 -0700 Subject: [PATCH 1/2] 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 +} From a8d03f80109adeacfb2b0c8f80ff7133d6ca6105 Mon Sep 17 00:00:00 2001 From: Janet Kuo Date: Tue, 4 Sep 2018 11:24:24 -0700 Subject: [PATCH 2/2] Autogen make clean && make generated_files Kubernetes-commit: 13b76d5fb4eb680a78eb9760f8bf0b2dd4d75d9c --- config/v1alpha1/zz_generated.deepcopy.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/config/v1alpha1/zz_generated.deepcopy.go b/config/v1alpha1/zz_generated.deepcopy.go index b975a12..f8d2427 100644 --- a/config/v1alpha1/zz_generated.deepcopy.go +++ b/config/v1alpha1/zz_generated.deepcopy.go @@ -300,6 +300,7 @@ func (in *KubeControllerManagerConfiguration) DeepCopyInto(out *KubeControllerMa out.ResourceQuotaController = in.ResourceQuotaController out.SAController = in.SAController out.ServiceController = in.ServiceController + out.TTLAfterFinishedController = in.TTLAfterFinishedController return } @@ -509,6 +510,22 @@ func (in *ServiceControllerConfiguration) DeepCopy() *ServiceControllerConfigura return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TTLAfterFinishedControllerConfiguration) DeepCopyInto(out *TTLAfterFinishedControllerConfiguration) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TTLAfterFinishedControllerConfiguration. +func (in *TTLAfterFinishedControllerConfiguration) DeepCopy() *TTLAfterFinishedControllerConfiguration { + if in == nil { + return nil + } + out := new(TTLAfterFinishedControllerConfiguration) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VolumeConfiguration) DeepCopyInto(out *VolumeConfiguration) { *out = *in