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

@@ -186,6 +186,7 @@ func Run(c *cloudcontrollerconfig.CompletedConfig, stopCh <-chan struct{}) error
"kube-system",
"cloud-controller-manager",
c.LeaderElectionClient.CoreV1(),
c.LeaderElectionClient.CoordinationV1(),
resourcelock.ResourceLockConfig{
Identity: id,
EventRecorder: c.EventRecorder,