Fix Event.Source for hostname_override case.

This commit is contained in:
Dawn Chen
2015-01-14 09:36:09 -08:00
parent 1f210d4961
commit 0716df8f2b
2 changed files with 3 additions and 5 deletions

View File

@@ -82,9 +82,8 @@ func SetupLogging() {
record.StartLogging(glog.Infof)
}
func SetupEventSending(client *client.Client) {
func SetupEventSending(client *client.Client, hostname string) {
glog.Infof("Sending events to api server.")
hostname := util.GetHostname("")
record.StartRecording(client.Events(""),
api.EventSource{
Component: "kubelet",