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

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