mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 22:20:51 +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)
|
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)
|
||||||
|
Reference in New Issue
Block a user