Migrate scheduler, controller-manager and cloud-controller-manager to lease lock.

This commit is contained in:
wojtekt
2020-09-08 08:21:57 +02:00
parent 92d8429651
commit 805c1753cd
6 changed files with 23 additions and 16 deletions

View File

@@ -49,7 +49,7 @@ func TestDefaultFlags(t *testing.T) {
},
ControllerStartInterval: metav1.Duration{Duration: 0},
LeaderElection: componentbaseconfig.LeaderElectionConfiguration{
ResourceLock: "endpointsleases",
ResourceLock: "leases",
LeaderElect: true,
LeaseDuration: metav1.Duration{Duration: 15 * time.Second},
RenewDeadline: metav1.Duration{Duration: 10 * time.Second},