Merge pull request #6026 from dchen1107/clean

kubectl describe nodes id reports related events
This commit is contained in:
Vish Kannan
2015-03-26 17:39:21 -07:00
3 changed files with 15 additions and 4 deletions

View File

@@ -1998,11 +1998,12 @@ func (kl *Kubelet) BirthCry() {
// Make an event that kubelet restarted.
// TODO: get the real minion object of ourself,
// and use the real minion name and UID.
// TODO: what is namespace for node?
ref := &api.ObjectReference{
Kind: "Minion",
Kind: "Node",
Name: kl.hostname,
UID: types.UID(kl.hostname),
Namespace: api.NamespaceDefault,
Namespace: "",
}
kl.recorder.Eventf(ref, "starting", "Starting kubelet.")
}