make controller port exposure optional

This commit is contained in:
David Eads 2018-01-09 15:54:39 -05:00
parent 29aff5bf47
commit f416e38a1e

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)