Apply davidopps comments to TaintController PR

This commit is contained in:
gmarek
2017-02-13 11:48:34 +01:00
parent 65cfd86c89
commit de6c9bd535
13 changed files with 376 additions and 109 deletions

View File

@@ -198,7 +198,7 @@ func NewNodeController(
glog.V(0).Infof("Sending events to api server.")
eventBroadcaster.StartRecordingToSink(&v1core.EventSinkImpl{Interface: v1core.New(kubeClient.Core().RESTClient()).Events("")})
} else {
glog.V(0).Infof("No api server defined - no events will be sent to API server.")
glog.Fatalf("kubeClient is nil when starting NodeController")
}
if kubeClient != nil && kubeClient.Core().RESTClient().GetRateLimiter() != nil {