rename healthz methodNames to be more consistent w/ present day usages

This commit is contained in:
Han Kang
2019-08-13 12:42:13 -07:00
parent f2c82f49e8
commit 2e23788fda
15 changed files with 60 additions and 60 deletions

View File

@@ -139,8 +139,8 @@ func Run(c *cloudcontrollerconfig.CompletedConfig, stopCh <-chan struct{}) error
klog.Errorf("unable to register configz: %v", err)
}
// Setup any healthz checks we will want to use.
var checks []healthz.HealthzChecker
// Setup any health checks we will want to use.
var checks []healthz.HealthChecker
var electionChecker *leaderelection.HealthzAdaptor
if c.ComponentConfig.Generic.LeaderElection.LeaderElect {
electionChecker = leaderelection.NewLeaderHealthzAdaptor(time.Second * 20)