Kubelet reports node related events with empty namespace for now.

This commit is contained in:
Dawn Chen
2015-03-26 16:30:23 -07:00
parent 9e5c0e3b3b
commit f662d7d11c
2 changed files with 6 additions and 3 deletions

View File

@@ -2131,11 +2131,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.")
}