mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
Merge pull request #2429 from erictune/fix_birthcry
Fix namespace of minion birthcry event.
This commit is contained in:
commit
c91306c5bd
@ -1019,9 +1019,10 @@ func (kl *Kubelet) BirthCry() {
|
|||||||
// TODO: get the real minion object of ourself,
|
// TODO: get the real minion object of ourself,
|
||||||
// and use the real minion name and UID.
|
// and use the real minion name and UID.
|
||||||
ref := &api.ObjectReference{
|
ref := &api.ObjectReference{
|
||||||
Kind: "Minion",
|
Kind: "Minion",
|
||||||
Name: kl.hostname,
|
Name: kl.hostname,
|
||||||
UID: kl.hostname,
|
UID: kl.hostname,
|
||||||
|
Namespace: api.NamespaceDefault,
|
||||||
}
|
}
|
||||||
record.Eventf(ref, "", "starting", "Starting kubelet.")
|
record.Eventf(ref, "", "starting", "Starting kubelet.")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user