From ecfae2bebef86fb9d8a25dfd3be9ab0347644fd2 Mon Sep 17 00:00:00 2001 From: SataQiu Date: Wed, 26 Oct 2022 21:49:31 +0800 Subject: [PATCH] kube-apiserver: keep the types of LeaseEndpointReconcilerType and NoneEndpointReconcilerType the same as MasterCountReconcilerType --- cmd/kube-apiserver/app/options/options.go | 2 +- pkg/controlplane/reconcilers/reconcilers.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/kube-apiserver/app/options/options.go b/cmd/kube-apiserver/app/options/options.go index 6da54474044..c61f6bbfc28 100644 --- a/cmd/kube-apiserver/app/options/options.go +++ b/cmd/kube-apiserver/app/options/options.go @@ -113,7 +113,7 @@ func NewServerRunOptions() *ServerRunOptions { EnableLogsHandler: true, EventTTL: 1 * time.Hour, MasterCount: 1, - EndpointReconcilerType: reconcilers.LeaseEndpointReconcilerType, + EndpointReconcilerType: string(reconcilers.LeaseEndpointReconcilerType), IdentityLeaseDurationSeconds: 3600, IdentityLeaseRenewIntervalSeconds: 10, KubeletConfig: kubeletclient.KubeletClientConfig{ diff --git a/pkg/controlplane/reconcilers/reconcilers.go b/pkg/controlplane/reconcilers/reconcilers.go index 0bc5856bebd..b0dcd465eef 100644 --- a/pkg/controlplane/reconcilers/reconcilers.go +++ b/pkg/controlplane/reconcilers/reconcilers.go @@ -53,9 +53,9 @@ const ( // MasterCountReconcilerType will select the original reconciler MasterCountReconcilerType Type = "master-count" // LeaseEndpointReconcilerType will select a storage based reconciler - LeaseEndpointReconcilerType = "lease" + LeaseEndpointReconcilerType Type = "lease" // NoneEndpointReconcilerType will turn off the endpoint reconciler - NoneEndpointReconcilerType = "none" + NoneEndpointReconcilerType Type = "none" ) // Types an array of reconciler types