mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #58018 from deads2k/controller-04-option
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. make controller port exposure optional Makes it possible to disable the http server part of controllers if a user wishes.
This commit is contained in:
commit
3af0b57e80
@ -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