scheduler: Fix field apiVersion is missing from events reported from taint manager

Signed-off-by: aimuz <mr.imuz@gmail.com>
This commit is contained in:
aimuz 2022-11-24 10:25:11 +08:00
parent fa78f28f0a
commit 975b2c6611
No known key found for this signature in database
GPG Key ID: 63C3DC9FBA22D9D7

View File

@ -514,6 +514,7 @@ func (tc *NoExecuteTaintManager) emitPodDeletionEvent(nsName types.NamespacedNam
return
}
ref := &v1.ObjectReference{
APIVersion: "v1",
Kind: "Pod",
Name: nsName.Name,
Namespace: nsName.Namespace,
@ -526,6 +527,7 @@ func (tc *NoExecuteTaintManager) emitCancelPodDeletionEvent(nsName types.Namespa
return
}
ref := &v1.ObjectReference{
APIVersion: "v1",
Kind: "Pod",
Name: nsName.Name,
Namespace: nsName.Namespace,