make controller port exposure optional

pull/6/head
David Eads 2018-01-09 15:54:39 -05:00
parent 29aff5bf47
commit f416e38a1e
1 changed files with 3 additions and 1 deletions

View File

@ -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)