mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
make controller port exposure optional
This commit is contained in:
parent
29aff5bf47
commit
f416e38a1e
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user