From 5b43a243187bf438d94eddce62071c33ea0759f8 Mon Sep 17 00:00:00 2001 From: stewart-yu Date: Sat, 12 Jan 2019 19:13:05 +0800 Subject: [PATCH] get rid of copied fields in the options and using wraped componentconfig fields --- .../app/options/cloudprovider.go | 3 +- .../app/options/debugging.go | 3 +- cmd/controller-manager/app/options/generic.go | 25 +++++----------- .../app/options/kubecloudshared.go | 29 +++++-------------- .../app/options/servicecontroller.go | 2 +- .../app/options/attachdetachcontroller.go | 4 +-- .../app/options/csrsigningcontroller.go | 5 +--- .../app/options/daemonsetcontroller.go | 2 +- .../app/options/deploymentcontroller.go | 4 +-- .../app/options/deprecatedcontroller.go | 4 +-- .../app/options/endpointcontroller.go | 2 +- .../app/options/garbagecollectorcontroller.go | 4 +-- .../app/options/hpacontroller.go | 10 +------ .../app/options/jobcontroller.go | 2 +- .../app/options/namespacecontroller.go | 4 +-- .../app/options/nodeipamcontroller.go | 3 +- .../app/options/nodelifecyclecontroller.go | 10 +------ .../persistentvolumebindercontroller.go | 4 +-- .../app/options/podgccontroller.go | 2 +- .../app/options/replicasetcontroller.go | 2 +- .../app/options/replicationcontroller.go | 2 +- .../app/options/resourcequotacontroller.go | 4 +-- .../app/options/serviceaccountcontroller.go | 4 +-- .../app/options/ttlafterfinishedcontroller.go | 2 +- 24 files changed, 37 insertions(+), 99 deletions(-) diff --git a/cmd/controller-manager/app/options/cloudprovider.go b/cmd/controller-manager/app/options/cloudprovider.go index 2c22d1b3f1..6e74b989c1 100644 --- a/cmd/controller-manager/app/options/cloudprovider.go +++ b/cmd/controller-manager/app/options/cloudprovider.go @@ -24,8 +24,7 @@ import ( // CloudProviderOptions holds the cloudprovider options. type CloudProviderOptions struct { - CloudConfigFile string - Name string + *kubectrlmgrconfig.CloudProviderConfiguration } // Validate checks validation of cloudprovider options. diff --git a/cmd/controller-manager/app/options/debugging.go b/cmd/controller-manager/app/options/debugging.go index 10271eabd2..05aa05f947 100644 --- a/cmd/controller-manager/app/options/debugging.go +++ b/cmd/controller-manager/app/options/debugging.go @@ -24,8 +24,7 @@ import ( // DebuggingOptions holds the Debugging options. type DebuggingOptions struct { - EnableProfiling bool - EnableContentionProfiling bool + *componentbaseconfig.DebuggingConfiguration } // AddFlags adds flags related to debugging for controller manager to the specified FlagSet. diff --git a/cmd/controller-manager/app/options/generic.go b/cmd/controller-manager/app/options/generic.go index 8d0dfc34f1..d5ffd1d167 100644 --- a/cmd/controller-manager/app/options/generic.go +++ b/cmd/controller-manager/app/options/generic.go @@ -20,7 +20,6 @@ import ( "fmt" "strings" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/sets" apiserverflag "k8s.io/apiserver/pkg/util/flag" componentbaseconfig "k8s.io/component-base/config" @@ -30,29 +29,19 @@ import ( // GenericControllerManagerConfigurationOptions holds the options which are generic. type GenericControllerManagerConfigurationOptions struct { - Port int32 - Address string - MinResyncPeriod metav1.Duration - ClientConnection componentbaseconfig.ClientConnectionConfiguration - ControllerStartInterval metav1.Duration - LeaderElection componentbaseconfig.LeaderElectionConfiguration - Debugging *DebuggingOptions - Controllers []string + *kubectrlmgrconfig.GenericControllerManagerConfiguration + Debugging *DebuggingOptions } // NewGenericControllerManagerConfigurationOptions returns generic configuration default values for both // the kube-controller-manager and the cloud-contoller-manager. Any common changes should // be made here. Any individual changes should be made in that controller. -func NewGenericControllerManagerConfigurationOptions(cfg kubectrlmgrconfig.GenericControllerManagerConfiguration) *GenericControllerManagerConfigurationOptions { +func NewGenericControllerManagerConfigurationOptions(cfg *kubectrlmgrconfig.GenericControllerManagerConfiguration) *GenericControllerManagerConfigurationOptions { o := &GenericControllerManagerConfigurationOptions{ - Port: cfg.Port, - Address: cfg.Address, - MinResyncPeriod: cfg.MinResyncPeriod, - ClientConnection: cfg.ClientConnection, - ControllerStartInterval: cfg.ControllerStartInterval, - LeaderElection: cfg.LeaderElection, - Debugging: &DebuggingOptions{}, - Controllers: cfg.Controllers, + GenericControllerManagerConfiguration: cfg, + Debugging: &DebuggingOptions{ + DebuggingConfiguration: &componentbaseconfig.DebuggingConfiguration{}, + }, } return o diff --git a/cmd/controller-manager/app/options/kubecloudshared.go b/cmd/controller-manager/app/options/kubecloudshared.go index 956571892b..8360ae32db 100644 --- a/cmd/controller-manager/app/options/kubecloudshared.go +++ b/cmd/controller-manager/app/options/kubecloudshared.go @@ -19,39 +19,25 @@ package options import ( "github.com/spf13/pflag" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" kubectrlmgrconfig "k8s.io/kubernetes/pkg/controller/apis/config" ) // KubeCloudSharedOptions holds the options shared between kube-controller-manager // and cloud-controller-manager. type KubeCloudSharedOptions struct { - CloudProvider *CloudProviderOptions - ExternalCloudVolumePlugin string - UseServiceAccountCredentials bool - AllowUntaggedCloud bool - RouteReconciliationPeriod metav1.Duration - NodeMonitorPeriod metav1.Duration - ClusterName string - ClusterCIDR string - AllocateNodeCIDRs bool - CIDRAllocatorType string - ConfigureCloudRoutes bool - NodeSyncPeriod metav1.Duration + *kubectrlmgrconfig.KubeCloudSharedConfiguration + CloudProvider *CloudProviderOptions } // NewKubeCloudSharedOptions returns common/default configuration values for both // the kube-controller-manager and the cloud-contoller-manager. Any common changes should // be made here. Any individual changes should be made in that controller. -func NewKubeCloudSharedOptions(cfg kubectrlmgrconfig.KubeCloudSharedConfiguration) *KubeCloudSharedOptions { +func NewKubeCloudSharedOptions(cfg *kubectrlmgrconfig.KubeCloudSharedConfiguration) *KubeCloudSharedOptions { o := &KubeCloudSharedOptions{ - CloudProvider: &CloudProviderOptions{}, - ExternalCloudVolumePlugin: cfg.ExternalCloudVolumePlugin, - UseServiceAccountCredentials: cfg.UseServiceAccountCredentials, - RouteReconciliationPeriod: cfg.RouteReconciliationPeriod, - NodeMonitorPeriod: cfg.NodeMonitorPeriod, - ClusterName: cfg.ClusterName, - ConfigureCloudRoutes: cfg.ConfigureCloudRoutes, + KubeCloudSharedConfiguration: cfg, + CloudProvider: &CloudProviderOptions{ + CloudProviderConfiguration: &kubectrlmgrconfig.CloudProviderConfiguration{}, + }, } return o @@ -92,6 +78,7 @@ func (o *KubeCloudSharedOptions) ApplyTo(cfg *kubectrlmgrconfig.KubeCloudSharedC if err := o.CloudProvider.ApplyTo(&cfg.CloudProvider); err != nil { return err } + cfg.ExternalCloudVolumePlugin = o.ExternalCloudVolumePlugin cfg.UseServiceAccountCredentials = o.UseServiceAccountCredentials cfg.AllowUntaggedCloud = o.AllowUntaggedCloud diff --git a/cmd/controller-manager/app/options/servicecontroller.go b/cmd/controller-manager/app/options/servicecontroller.go index f6b7ab628b..b5970bc088 100644 --- a/cmd/controller-manager/app/options/servicecontroller.go +++ b/cmd/controller-manager/app/options/servicecontroller.go @@ -24,7 +24,7 @@ import ( // ServiceControllerOptions holds the ServiceController options. type ServiceControllerOptions struct { - ConcurrentServiceSyncs int32 + *kubectrlmgrconfig.ServiceControllerConfiguration } // AddFlags adds flags related to ServiceController for controller manager to the specified FlagSet. diff --git a/cmd/kube-controller-manager/app/options/attachdetachcontroller.go b/cmd/kube-controller-manager/app/options/attachdetachcontroller.go index ea0102c567..bf2b3e6883 100644 --- a/cmd/kube-controller-manager/app/options/attachdetachcontroller.go +++ b/cmd/kube-controller-manager/app/options/attachdetachcontroller.go @@ -19,14 +19,12 @@ package options import ( "github.com/spf13/pflag" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" kubectrlmgrconfig "k8s.io/kubernetes/pkg/controller/apis/config" ) // AttachDetachControllerOptions holds the AttachDetachController options. type AttachDetachControllerOptions struct { - ReconcilerSyncLoopPeriod metav1.Duration - DisableAttachDetachReconcilerSync bool + *kubectrlmgrconfig.AttachDetachControllerConfiguration } // AddFlags adds flags related to AttachDetachController for controller manager to the specified FlagSet. diff --git a/cmd/kube-controller-manager/app/options/csrsigningcontroller.go b/cmd/kube-controller-manager/app/options/csrsigningcontroller.go index 3ddb7cd645..ab3f83c8e2 100644 --- a/cmd/kube-controller-manager/app/options/csrsigningcontroller.go +++ b/cmd/kube-controller-manager/app/options/csrsigningcontroller.go @@ -19,7 +19,6 @@ package options import ( "github.com/spf13/pflag" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" kubectrlmgrconfig "k8s.io/kubernetes/pkg/controller/apis/config" ) @@ -35,9 +34,7 @@ const ( // CSRSigningControllerOptions holds the CSRSigningController options. type CSRSigningControllerOptions struct { - ClusterSigningDuration metav1.Duration - ClusterSigningKeyFile string - ClusterSigningCertFile string + *kubectrlmgrconfig.CSRSigningControllerConfiguration } // AddFlags adds flags related to CSRSigningController for controller manager to the specified FlagSet. diff --git a/cmd/kube-controller-manager/app/options/daemonsetcontroller.go b/cmd/kube-controller-manager/app/options/daemonsetcontroller.go index c0e3ec0492..08ca2ae8cd 100644 --- a/cmd/kube-controller-manager/app/options/daemonsetcontroller.go +++ b/cmd/kube-controller-manager/app/options/daemonsetcontroller.go @@ -24,7 +24,7 @@ import ( // DaemonSetControllerOptions holds the DaemonSetController options. type DaemonSetControllerOptions struct { - ConcurrentDaemonSetSyncs int32 + *kubectrlmgrconfig.DaemonSetControllerConfiguration } // AddFlags adds flags related to DaemonSetController for controller manager to the specified FlagSet. diff --git a/cmd/kube-controller-manager/app/options/deploymentcontroller.go b/cmd/kube-controller-manager/app/options/deploymentcontroller.go index b497a3e756..a3f6e09c86 100644 --- a/cmd/kube-controller-manager/app/options/deploymentcontroller.go +++ b/cmd/kube-controller-manager/app/options/deploymentcontroller.go @@ -19,14 +19,12 @@ package options import ( "github.com/spf13/pflag" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" kubectrlmgrconfig "k8s.io/kubernetes/pkg/controller/apis/config" ) // DeploymentControllerOptions holds the DeploymentController options. type DeploymentControllerOptions struct { - ConcurrentDeploymentSyncs int32 - DeploymentControllerSyncPeriod metav1.Duration + *kubectrlmgrconfig.DeploymentControllerConfiguration } // AddFlags adds flags related to DeploymentController for controller manager to the specified FlagSet. diff --git a/cmd/kube-controller-manager/app/options/deprecatedcontroller.go b/cmd/kube-controller-manager/app/options/deprecatedcontroller.go index 904abac06c..48ff5dd0d0 100644 --- a/cmd/kube-controller-manager/app/options/deprecatedcontroller.go +++ b/cmd/kube-controller-manager/app/options/deprecatedcontroller.go @@ -25,9 +25,7 @@ import ( // DeprecatedControllerOptions holds the DeprecatedController options, those option are deprecated. // TODO remove these fields once the deprecated flags are removed. type DeprecatedControllerOptions struct { - DeletingPodsQPS float32 - DeletingPodsBurst int32 - RegisterRetryCount int32 + *kubectrlmgrconfig.DeprecatedControllerConfiguration } // AddFlags adds flags related to DeprecatedController for controller manager to the specified FlagSet. diff --git a/cmd/kube-controller-manager/app/options/endpointcontroller.go b/cmd/kube-controller-manager/app/options/endpointcontroller.go index c3b224cecb..f8258ce910 100644 --- a/cmd/kube-controller-manager/app/options/endpointcontroller.go +++ b/cmd/kube-controller-manager/app/options/endpointcontroller.go @@ -24,7 +24,7 @@ import ( // EndpointControllerOptions holds the EndPointController options. type EndpointControllerOptions struct { - ConcurrentEndpointSyncs int32 + *kubectrlmgrconfig.EndpointControllerConfiguration } // AddFlags adds flags related to EndPointController for controller manager to the specified FlagSet. diff --git a/cmd/kube-controller-manager/app/options/garbagecollectorcontroller.go b/cmd/kube-controller-manager/app/options/garbagecollectorcontroller.go index 07b63f6f57..9b516c3866 100644 --- a/cmd/kube-controller-manager/app/options/garbagecollectorcontroller.go +++ b/cmd/kube-controller-manager/app/options/garbagecollectorcontroller.go @@ -24,9 +24,7 @@ import ( // GarbageCollectorControllerOptions holds the GarbageCollectorController options. type GarbageCollectorControllerOptions struct { - ConcurrentGCSyncs int32 - GCIgnoredResources []kubectrlmgrconfig.GroupResource - EnableGarbageCollector bool + *kubectrlmgrconfig.GarbageCollectorControllerConfiguration } // AddFlags adds flags related to GarbageCollectorController for controller manager to the specified FlagSet. diff --git a/cmd/kube-controller-manager/app/options/hpacontroller.go b/cmd/kube-controller-manager/app/options/hpacontroller.go index b1e29f30de..928f8dcb2b 100644 --- a/cmd/kube-controller-manager/app/options/hpacontroller.go +++ b/cmd/kube-controller-manager/app/options/hpacontroller.go @@ -19,20 +19,12 @@ package options import ( "github.com/spf13/pflag" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" kubectrlmgrconfig "k8s.io/kubernetes/pkg/controller/apis/config" ) // HPAControllerOptions holds the HPAController options. type HPAControllerOptions struct { - HorizontalPodAutoscalerUseRESTClients bool - HorizontalPodAutoscalerTolerance float64 - HorizontalPodAutoscalerDownscaleStabilizationWindow metav1.Duration - HorizontalPodAutoscalerDownscaleForbiddenWindow metav1.Duration - HorizontalPodAutoscalerUpscaleForbiddenWindow metav1.Duration - HorizontalPodAutoscalerSyncPeriod metav1.Duration - HorizontalPodAutoscalerCPUInitializationPeriod metav1.Duration - HorizontalPodAutoscalerInitialReadinessDelay metav1.Duration + *kubectrlmgrconfig.HPAControllerConfiguration } // AddFlags adds flags related to HPAController for controller manager to the specified FlagSet. diff --git a/cmd/kube-controller-manager/app/options/jobcontroller.go b/cmd/kube-controller-manager/app/options/jobcontroller.go index d9d715c2ba..b74f03bec1 100644 --- a/cmd/kube-controller-manager/app/options/jobcontroller.go +++ b/cmd/kube-controller-manager/app/options/jobcontroller.go @@ -24,7 +24,7 @@ import ( // JobControllerOptions holds the JobController options. type JobControllerOptions struct { - ConcurrentJobSyncs int32 + *kubectrlmgrconfig.JobControllerConfiguration } // AddFlags adds flags related to JobController for controller manager to the specified FlagSet. diff --git a/cmd/kube-controller-manager/app/options/namespacecontroller.go b/cmd/kube-controller-manager/app/options/namespacecontroller.go index 90a771b781..dadb649e71 100644 --- a/cmd/kube-controller-manager/app/options/namespacecontroller.go +++ b/cmd/kube-controller-manager/app/options/namespacecontroller.go @@ -19,14 +19,12 @@ package options import ( "github.com/spf13/pflag" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" kubectrlmgrconfig "k8s.io/kubernetes/pkg/controller/apis/config" ) // NamespaceControllerOptions holds the NamespaceController options. type NamespaceControllerOptions struct { - NamespaceSyncPeriod metav1.Duration - ConcurrentNamespaceSyncs int32 + *kubectrlmgrconfig.NamespaceControllerConfiguration } // AddFlags adds flags related to NamespaceController for controller manager to the specified FlagSet. diff --git a/cmd/kube-controller-manager/app/options/nodeipamcontroller.go b/cmd/kube-controller-manager/app/options/nodeipamcontroller.go index 6e2ecb96af..ac547d3a14 100644 --- a/cmd/kube-controller-manager/app/options/nodeipamcontroller.go +++ b/cmd/kube-controller-manager/app/options/nodeipamcontroller.go @@ -24,8 +24,7 @@ import ( // NodeIPAMControllerOptions holds the NodeIpamController options. type NodeIPAMControllerOptions struct { - ServiceCIDR string - NodeCIDRMaskSize int32 + *kubectrlmgrconfig.NodeIPAMControllerConfiguration } // AddFlags adds flags related to NodeIpamController for controller manager to the specified FlagSet. diff --git a/cmd/kube-controller-manager/app/options/nodelifecyclecontroller.go b/cmd/kube-controller-manager/app/options/nodelifecyclecontroller.go index 956543fe04..11805be366 100644 --- a/cmd/kube-controller-manager/app/options/nodelifecyclecontroller.go +++ b/cmd/kube-controller-manager/app/options/nodelifecyclecontroller.go @@ -19,20 +19,12 @@ package options import ( "github.com/spf13/pflag" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" kubectrlmgrconfig "k8s.io/kubernetes/pkg/controller/apis/config" ) // NodeLifecycleControllerOptions holds the NodeLifecycleController options. type NodeLifecycleControllerOptions struct { - EnableTaintManager bool - NodeEvictionRate float32 - SecondaryNodeEvictionRate float32 - NodeStartupGracePeriod metav1.Duration - NodeMonitorGracePeriod metav1.Duration - PodEvictionTimeout metav1.Duration - LargeClusterSizeThreshold int32 - UnhealthyZoneThreshold float32 + *kubectrlmgrconfig.NodeLifecycleControllerConfiguration } // AddFlags adds flags related to NodeLifecycleController for controller manager to the specified FlagSet. diff --git a/cmd/kube-controller-manager/app/options/persistentvolumebindercontroller.go b/cmd/kube-controller-manager/app/options/persistentvolumebindercontroller.go index 93ba171b07..1f8213ad34 100644 --- a/cmd/kube-controller-manager/app/options/persistentvolumebindercontroller.go +++ b/cmd/kube-controller-manager/app/options/persistentvolumebindercontroller.go @@ -19,14 +19,12 @@ package options import ( "github.com/spf13/pflag" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" kubectrlmgrconfig "k8s.io/kubernetes/pkg/controller/apis/config" ) // PersistentVolumeBinderControllerOptions holds the PersistentVolumeBinderController options. type PersistentVolumeBinderControllerOptions struct { - PVClaimBinderSyncPeriod metav1.Duration - VolumeConfiguration kubectrlmgrconfig.VolumeConfiguration + *kubectrlmgrconfig.PersistentVolumeBinderControllerConfiguration } // AddFlags adds flags related to PersistentVolumeBinderController for controller manager to the specified FlagSet. diff --git a/cmd/kube-controller-manager/app/options/podgccontroller.go b/cmd/kube-controller-manager/app/options/podgccontroller.go index 0d9928aee1..4711aba8d9 100644 --- a/cmd/kube-controller-manager/app/options/podgccontroller.go +++ b/cmd/kube-controller-manager/app/options/podgccontroller.go @@ -24,7 +24,7 @@ import ( // PodGCControllerOptions holds the PodGCController options. type PodGCControllerOptions struct { - TerminatedPodGCThreshold int32 + *kubectrlmgrconfig.PodGCControllerConfiguration } // AddFlags adds flags related to PodGCController for controller manager to the specified FlagSet. diff --git a/cmd/kube-controller-manager/app/options/replicasetcontroller.go b/cmd/kube-controller-manager/app/options/replicasetcontroller.go index 2a3e206fd1..ed803e4a69 100644 --- a/cmd/kube-controller-manager/app/options/replicasetcontroller.go +++ b/cmd/kube-controller-manager/app/options/replicasetcontroller.go @@ -24,7 +24,7 @@ import ( // ReplicaSetControllerOptions holds the ReplicaSetController options. type ReplicaSetControllerOptions struct { - ConcurrentRSSyncs int32 + *kubectrlmgrconfig.ReplicaSetControllerConfiguration } // AddFlags adds flags related to ReplicaSetController for controller manager to the specified FlagSet. diff --git a/cmd/kube-controller-manager/app/options/replicationcontroller.go b/cmd/kube-controller-manager/app/options/replicationcontroller.go index 3e24dc5aae..8c8e624b8b 100644 --- a/cmd/kube-controller-manager/app/options/replicationcontroller.go +++ b/cmd/kube-controller-manager/app/options/replicationcontroller.go @@ -24,7 +24,7 @@ import ( // ReplicationControllerOptions holds the ReplicationController options. type ReplicationControllerOptions struct { - ConcurrentRCSyncs int32 + *kubectrlmgrconfig.ReplicationControllerConfiguration } // AddFlags adds flags related to ReplicationController for controller manager to the specified FlagSet. diff --git a/cmd/kube-controller-manager/app/options/resourcequotacontroller.go b/cmd/kube-controller-manager/app/options/resourcequotacontroller.go index 5bb1f07a52..447ce25863 100644 --- a/cmd/kube-controller-manager/app/options/resourcequotacontroller.go +++ b/cmd/kube-controller-manager/app/options/resourcequotacontroller.go @@ -19,14 +19,12 @@ package options import ( "github.com/spf13/pflag" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" kubectrlmgrconfig "k8s.io/kubernetes/pkg/controller/apis/config" ) // ResourceQuotaControllerOptions holds the ResourceQuotaController options. type ResourceQuotaControllerOptions struct { - ResourceQuotaSyncPeriod metav1.Duration - ConcurrentResourceQuotaSyncs int32 + *kubectrlmgrconfig.ResourceQuotaControllerConfiguration } // AddFlags adds flags related to ResourceQuotaController for controller manager to the specified FlagSet. diff --git a/cmd/kube-controller-manager/app/options/serviceaccountcontroller.go b/cmd/kube-controller-manager/app/options/serviceaccountcontroller.go index 88a40b46bd..a3c8aebc0f 100644 --- a/cmd/kube-controller-manager/app/options/serviceaccountcontroller.go +++ b/cmd/kube-controller-manager/app/options/serviceaccountcontroller.go @@ -24,9 +24,7 @@ import ( // SAControllerOptions holds the ServiceAccountController options. type SAControllerOptions struct { - ServiceAccountKeyFile string - ConcurrentSATokenSyncs int32 - RootCAFile string + *kubectrlmgrconfig.SAControllerConfiguration } // AddFlags adds flags related to ServiceAccountController for controller manager to the specified FlagSet diff --git a/cmd/kube-controller-manager/app/options/ttlafterfinishedcontroller.go b/cmd/kube-controller-manager/app/options/ttlafterfinishedcontroller.go index 2f7fe765ea..c422958de8 100644 --- a/cmd/kube-controller-manager/app/options/ttlafterfinishedcontroller.go +++ b/cmd/kube-controller-manager/app/options/ttlafterfinishedcontroller.go @@ -24,7 +24,7 @@ import ( // TTLAfterFinishedControllerOptions holds the TTLAfterFinishedController options. type TTLAfterFinishedControllerOptions struct { - ConcurrentTTLSyncs int32 + *kubectrlmgrconfig.TTLAfterFinishedControllerConfiguration } // AddFlags adds flags related to TTLAfterFinishedController for controller manager to the specified FlagSet.