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