lease controller: update NewController to accept leaseName as a parameter, remove NewControllerWithLeaseName

Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
This commit is contained in:
Andrew Sy Kim
2022-11-01 12:25:01 -04:00
parent 3c0b75f4ad
commit 72f2e1cc0d
3 changed files with 4 additions and 24 deletions

View File

@@ -476,7 +476,7 @@ func (c completedConfig) New(delegationTarget genericapiserver.DelegationTarget)
leaseName := m.GenericAPIServer.APIServerID
holderIdentity := m.GenericAPIServer.APIServerID + "_" + string(uuid.NewUUID())
controller := lease.NewControllerWithLeaseName(
controller := lease.NewController(
clock.RealClock{},
kubeClient,
holderIdentity,