Skip to content

Commit

Permalink
Fix stage event object
Browse files Browse the repository at this point in the history
  • Loading branch information
wzshiming authored and k8s-infra-cherrypick-robot committed Mar 11, 2024
1 parent 3a91506 commit 958f1d1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/kwok/controllers/stage_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 958f1d1

Please sign in to comment.