Create selfLink for pods from config files and indicate hostname as part of event source.

This commit is contained in:
Dawn Chen
2015-01-05 11:03:51 -08:00
parent 3a4d5fd6a2
commit 2b91c1417c
4 changed files with 13 additions and 3 deletions

View File

@@ -130,8 +130,9 @@ func SetupEventSending(authPath string, apiServerList util.StringList) {
glog.Errorf("Unable to make apiserver client: %v", err)
} else {
// Send events to APIserver if there is a client.
hostname := util.GetHostname("")
glog.Infof("Sending events to APIserver.")
record.StartRecording(apiClient.Events(""), "kubelet")
record.StartRecording(apiClient.Events(""), "kubelet:"+hostname)
}
}
}