Skip to content

Commit

Permalink
Merge pull request #989 from k8s-infra-cherrypick-robot/cherry-pick-9…
Browse files Browse the repository at this point in the history
…88-to-release-0.5

[release-0.5] Fix stage event object
  • Loading branch information
wzshiming authored Mar 11, 2024
2 parents 3a91506 + 958f1d1 commit 8dfa4ba
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 8dfa4ba

Please sign in to comment.