implement LegacyServiceAccountTokenCleanUp alpha
Kubernetes-commit: 133eff3df4951a204a1acecd3a25afa3e3967c32
This commit is contained in:
parent
85abf70e3b
commit
bd7d889d53
|
@ -131,8 +131,8 @@ type KubeControllerManagerConfiguration struct {
|
||||||
JobController JobControllerConfiguration
|
JobController JobControllerConfiguration
|
||||||
// CronJobControllerConfiguration holds configuration for CronJobController related features.
|
// CronJobControllerConfiguration holds configuration for CronJobController related features.
|
||||||
CronJobController CronJobControllerConfiguration
|
CronJobController CronJobControllerConfiguration
|
||||||
// NamespaceControllerConfiguration holds configuration for NamespaceController
|
// LegacySATokenCleanerConfiguration holds configuration for LegacySATokenCleaner related features.
|
||||||
// related features.
|
LegacySATokenCleaner LegacySATokenCleanerConfiguration
|
||||||
// NamespaceControllerConfiguration holds configuration for NamespaceController
|
// NamespaceControllerConfiguration holds configuration for NamespaceController
|
||||||
// related features.
|
// related features.
|
||||||
NamespaceController NamespaceControllerConfiguration
|
NamespaceController NamespaceControllerConfiguration
|
||||||
|
@ -357,6 +357,13 @@ type CronJobControllerConfiguration struct {
|
||||||
ConcurrentCronJobSyncs int32
|
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.
|
// NamespaceControllerConfiguration contains elements describing NamespaceController.
|
||||||
type NamespaceControllerConfiguration struct {
|
type NamespaceControllerConfiguration struct {
|
||||||
// namespaceSyncPeriod is the period for syncing namespace life-cycle
|
// namespaceSyncPeriod is the period for syncing namespace life-cycle
|
||||||
|
|
|
@ -310,6 +310,7 @@ func (in *KubeControllerManagerConfiguration) DeepCopyInto(out *KubeControllerMa
|
||||||
out.HPAController = in.HPAController
|
out.HPAController = in.HPAController
|
||||||
out.JobController = in.JobController
|
out.JobController = in.JobController
|
||||||
out.CronJobController = in.CronJobController
|
out.CronJobController = in.CronJobController
|
||||||
|
out.LegacySATokenCleaner = in.LegacySATokenCleaner
|
||||||
out.NamespaceController = in.NamespaceController
|
out.NamespaceController = in.NamespaceController
|
||||||
out.NodeIPAMController = in.NodeIPAMController
|
out.NodeIPAMController = in.NodeIPAMController
|
||||||
out.NodeLifecycleController = in.NodeLifecycleController
|
out.NodeLifecycleController = in.NodeLifecycleController
|
||||||
|
@ -342,6 +343,23 @@ func (in *KubeControllerManagerConfiguration) DeepCopyObject() runtime.Object {
|
||||||
return nil
|
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.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *NamespaceControllerConfiguration) DeepCopyInto(out *NamespaceControllerConfiguration) {
|
func (in *NamespaceControllerConfiguration) DeepCopyInto(out *NamespaceControllerConfiguration) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
|
Loading…
Reference in New Issue