Unverified Commit 3af0b57e authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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.
parents 4989087f f416e38a
...@@ -128,7 +128,9 @@ func Run(s *options.CMServer) error { ...@@ -128,7 +128,9 @@ func Run(s *options.CMServer) error {
return err return err
} }
go startHTTP(s) if s.Port >= 0 {
go startHTTP(s)
}
recorder := createRecorder(kubeClient) recorder := createRecorder(kubeClient)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment