diff --git a/pkg/kwok/controllers/stage_controller.go b/pkg/kwok/controllers/stage_controller.go index a7c55d23d..7d2a99116 100644 --- a/pkg/kwok/controllers/stage_controller.go +++ b/pkg/kwok/controllers/stage_controller.go @@ -313,10 +313,11 @@ func (c *StageController) playStage(ctx context.Context, resource *unstructured. if next.Event != nil && c.recorder != nil { c.recorder.Event(&corev1.ObjectReference{ - Kind: "Stage", - UID: resource.GetUID(), - Name: resource.GetName(), - Namespace: resource.GetNamespace(), + APIVersion: resource.GetAPIVersion(), + Kind: resource.GetKind(), + UID: resource.GetUID(), + Name: resource.GetName(), + Namespace: resource.GetNamespace(), }, next.Event.Type, next.Event.Reason, next.Event.Message) }