UPSTREAM: 87537: Add apiVersion to involvedObject
@@ -159,6 +159,7 @@ func MarkPodsNotReady(kubeClient clientset.Interface, pods []*v1.Pod, nodeName s
// RecordNodeEvent records a event related to a node.
func RecordNodeEvent(recorder record.EventRecorder, nodeName, nodeUID, eventtype, reason, event string) {
ref := &v1.ObjectReference{
+ APIVersion: "v1",
Kind: "Node",
Name: nodeName,
UID: types.UID(nodeUID),
@@ -171,6 +172,7 @@ func RecordNodeEvent(recorder record.EventRecorder, nodeName, nodeUID, eventtype
// RecordNodeStatusChange records a event related to a node status change. (Common to lifecycle and ipam)
func RecordNodeStatusChange(recorder record.EventRecorder, node *v1.Node, newStatus string) {
ref := &v1.ObjectReference{
+ APIVersion: "v1",
Kind: "Node",
Name: node.Name,
UID: node.UID,
