leaderelection: set timeout for tryAcquireOrRenew

This commit is contained in:
xuzhonghu
2018-06-20 15:44:31 +08:00
parent 7c6213e922
commit 90b287c12d
2 changed files with 14 additions and 2 deletions

View File

@@ -204,7 +204,7 @@ func (o *Options) Config() (*schedulerappconfig.Config, error) {
}
// prepare kube clients.
client, leaderElectionClient, eventClient, err := createClients(o.ComponentConfig.ClientConnection, o.Master, o.ComponentConfig.LeaderElection.RenewDeadline.Duration)
client, leaderElectionClient, eventClient, err := createClients(c.ComponentConfig.ClientConnection, o.Master, c.ComponentConfig.LeaderElection.RenewDeadline.Duration)
if err != nil {
return nil, err
}