mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 05:01:46 +00:00
Merge pull request #6026 from dchen1107/clean
kubectl describe nodes id reports related events
This commit is contained in:
@@ -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.")
|
||||
}
|
||||
|
Reference in New Issue
Block a user