mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
allow disabling the scheduler port
This commit is contained in:
@@ -93,7 +93,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)
|
||||
|
Reference in New Issue
Block a user