kube-apiserver: keep the types of LeaseEndpointReconcilerType and NoneEndpointReconcilerType the same as MasterCountReconcilerType

This commit is contained in:
SataQiu 2022-10-26 21:49:31 +08:00
parent 5539a5b80f
commit ecfae2bebe
2 changed files with 3 additions and 3 deletions

View File

@ -113,7 +113,7 @@ func NewServerRunOptions() *ServerRunOptions {
EnableLogsHandler: true, EnableLogsHandler: true,
EventTTL: 1 * time.Hour, EventTTL: 1 * time.Hour,
MasterCount: 1, MasterCount: 1,
EndpointReconcilerType: reconcilers.LeaseEndpointReconcilerType, EndpointReconcilerType: string(reconcilers.LeaseEndpointReconcilerType),
IdentityLeaseDurationSeconds: 3600, IdentityLeaseDurationSeconds: 3600,
IdentityLeaseRenewIntervalSeconds: 10, IdentityLeaseRenewIntervalSeconds: 10,
KubeletConfig: kubeletclient.KubeletClientConfig{ KubeletConfig: kubeletclient.KubeletClientConfig{

View File

@ -53,9 +53,9 @@ const (
// MasterCountReconcilerType will select the original reconciler // MasterCountReconcilerType will select the original reconciler
MasterCountReconcilerType Type = "master-count" MasterCountReconcilerType Type = "master-count"
// LeaseEndpointReconcilerType will select a storage based reconciler // LeaseEndpointReconcilerType will select a storage based reconciler
LeaseEndpointReconcilerType = "lease" LeaseEndpointReconcilerType Type = "lease"
// NoneEndpointReconcilerType will turn off the endpoint reconciler // NoneEndpointReconcilerType will turn off the endpoint reconciler
NoneEndpointReconcilerType = "none" NoneEndpointReconcilerType Type = "none"
) )
// Types an array of reconciler types // Types an array of reconciler types