Skip to content

Commit

Permalink
Merge pull request #73896 from ping035627/k8s-190211
Browse files Browse the repository at this point in the history
Fix function comment to consistent with its name
  • Loading branch information
k8s-ci-robot committed Feb 11, 2019
2 parents 69cf268 + d8e3d11 commit 9c72a33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kube-scheduler/app/server.go
Expand Up @@ -214,7 +214,7 @@ func Run(cc schedulerserverconfig.CompletedConfig, stopCh <-chan struct{}) error
// TODO: handle stoppedCh returned by c.SecureServing.Serve
if _, err := cc.SecureServing.Serve(handler, 0, stopCh); err != nil {
// fail early for secure handlers, removing the old error loop from above
return fmt.Errorf("failed to start healthz server: %v", err)
return fmt.Errorf("failed to start secure server: %v", err)
}
}

Expand Down Expand Up @@ -306,7 +306,7 @@ func newMetricsHandler(config *kubeschedulerconfig.KubeSchedulerConfiguration) h
return pathRecorderMux
}

// newHealthzServer creates a healthz server from the config, and will also
// newHealthzHandler creates a healthz server from the config, and will also
// embed the metrics handler if the healthz and metrics address configurations
// are the same.
func newHealthzHandler(config *kubeschedulerconfig.KubeSchedulerConfiguration, separateMetrics bool, checks ...healthz.HealthzChecker) http.Handler {
Expand Down

0 comments on commit 9c72a33

Please sign in to comment.