implement LegacyServiceAccountTokenCleanUp alpha

Kubernetes-commit: 133eff3df4951a204a1acecd3a25afa3e3967c32
This commit is contained in:
tinatingyu 2022-12-27 17:23:05 +00:00 committed by Kubernetes Publisher
parent 85abf70e3b
commit bd7d889d53
2 changed files with 27 additions and 2 deletions

View File

@ -131,8 +131,8 @@ type KubeControllerManagerConfiguration struct {
JobController JobControllerConfiguration
// CronJobControllerConfiguration holds configuration for CronJobController related features.
CronJobController CronJobControllerConfiguration
// NamespaceControllerConfiguration holds configuration for NamespaceController
// related features.
// LegacySATokenCleanerConfiguration holds configuration for LegacySATokenCleaner related features.
LegacySATokenCleaner LegacySATokenCleanerConfiguration
// NamespaceControllerConfiguration holds configuration for NamespaceController
// related features.
NamespaceController NamespaceControllerConfiguration
@ -357,6 +357,13 @@ type CronJobControllerConfiguration struct {
ConcurrentCronJobSyncs int32
}
// LegacySATokenCleanerConfiguration contains elements describing LegacySATokenCleaner
type LegacySATokenCleanerConfiguration struct {
// CleanUpPeriod is the period of time since the last usage of an
// auto-generated service account token before it can be deleted.
CleanUpPeriod metav1.Duration
}
// NamespaceControllerConfiguration contains elements describing NamespaceController.
type NamespaceControllerConfiguration struct {
// namespaceSyncPeriod is the period for syncing namespace life-cycle

View File

@ -310,6 +310,7 @@ func (in *KubeControllerManagerConfiguration) DeepCopyInto(out *KubeControllerMa
out.HPAController = in.HPAController
out.JobController = in.JobController
out.CronJobController = in.CronJobController
out.LegacySATokenCleaner = in.LegacySATokenCleaner
out.NamespaceController = in.NamespaceController
out.NodeIPAMController = in.NodeIPAMController
out.NodeLifecycleController = in.NodeLifecycleController
@ -342,6 +343,23 @@ func (in *KubeControllerManagerConfiguration) DeepCopyObject() runtime.Object {
return nil
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *LegacySATokenCleanerConfiguration) DeepCopyInto(out *LegacySATokenCleanerConfiguration) {
*out = *in
out.CleanUpPeriod = in.CleanUpPeriod
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LegacySATokenCleanerConfiguration.
func (in *LegacySATokenCleanerConfiguration) DeepCopy() *LegacySATokenCleanerConfiguration {
if in == nil {
return nil
}
out := new(LegacySATokenCleanerConfiguration)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *NamespaceControllerConfiguration) DeepCopyInto(out *NamespaceControllerConfiguration) {
*out = *in