Add Lease implementation to leaderelection package

This commit is contained in:
Matthew Wong
2018-11-20 10:29:44 -05:00
parent 35bd2a5e88
commit 410175851c
8 changed files with 249 additions and 88 deletions

View File

@@ -274,6 +274,7 @@ func makeLeaderElectionConfig(config kubeschedulerconfig.KubeSchedulerLeaderElec
config.LockObjectNamespace,
config.LockObjectName,
client.CoreV1(),
client.CoordinationV1(),
resourcelock.ResourceLockConfig{
Identity: id,
EventRecorder: recorder,