Commit f25e34c1 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #51535 from deads2k/scheduler-02-no-http

Automatic merge from submit-queue (batch tested with PRs 47054, 50398, 51541, 51535, 51545) allow disabling the scheduler port Unlike the `kube-apiserver`, the scheduler can function without exposing a status port. This provides the option to disable it by explicitly passing a `-1`. This does not change default behavior. @aveshagarwal
parents c7c0387d 61de1ba9
...@@ -93,7 +93,9 @@ func Run(s *options.SchedulerServer) error { ...@@ -93,7 +93,9 @@ func Run(s *options.SchedulerServer) error {
return fmt.Errorf("error creating scheduler: %v", err) return fmt.Errorf("error creating scheduler: %v", err)
} }
go startHTTP(s) if s.Port != -1 {
go startHTTP(s)
}
stop := make(chan struct{}) stop := make(chan struct{})
defer close(stop) defer close(stop)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment