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.
pull/6/head
Kubernetes Submit Queue 2018-01-10 01:26:49 -08:00 committed by GitHub
commit 3af0b57e80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -128,7 +128,9 @@ func Run(s *options.CMServer) error {
return err
}
if s.Port >= 0 {
go startHTTP(s)
}
recorder := createRecorder(kubeClient)