UPSTREAM: 51535: allow disabling the scheduler port
@@ -94,7 +94,9 @@ func Run(s *options.SchedulerServer) error {
return fmt.Errorf("error creating scheduler: %v", err)
}
+ if s.Port != -1 {
go startHTTP(s)
+ }
stop := make(chan struct{})
defer close(stop)
