mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-05 19:21:37 +00:00
make controller port exposure optional
This commit is contained in:
@@ -128,7 +128,9 @@ func Run(s *options.CMServer) error {
|
||||
return err
|
||||
}
|
||||
|
||||
go startHTTP(s)
|
||||
if s.Port >= 0 {
|
||||
go startHTTP(s)
|
||||
}
|
||||
|
||||
recorder := createRecorder(kubeClient)
|
||||
|
||||
|
Reference in New Issue
Block a user