This is an automated email from the ASF dual-hosted git repository. pbacsko pushed a commit to branch branch-1.5 in repository https://gitbox.apache.org/repos/asf/yunikorn-k8shim.git
The following commit(s) were added to refs/heads/branch-1.5 by this push: new 30b076cf [YUNIKORN-2704] Event publish errors out when predicates fail (#863) 30b076cf is described below commit 30b076cfeb6bef6518c8d17a25dc849fa776e29f Author: Peter Bacsko <pbac...@cloudera.com> AuthorDate: Fri Jun 28 10:32:41 2024 +0200 [YUNIKORN-2704] Event publish errors out when predicates fail (#863) Closes: #863 Signed-off-by: Peter Bacsko <pbac...@cloudera.com> (cherry picked from commit 22228dfade3b27909adf62a43fca97f61b2876fe) --- pkg/cache/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cache/context.go b/pkg/cache/context.go index ca15fc8e..653001a6 100644 --- a/pkg/cache/context.go +++ b/pkg/cache/context.go @@ -1199,7 +1199,7 @@ func (ctx *Context) PublishEvents(eventRecords []*si.EventRecord) { taskID := record.ObjectID if task := ctx.getTask(appID, taskID); task != nil { events.GetRecorder().Eventf(task.GetTaskPod().DeepCopy(), nil, - v1.EventTypeNormal, "", "", record.Message) + v1.EventTypeNormal, "Informational", "Informational", record.Message) } else { log.Log(log.ShimContext).Warn("task event is not published because task is not found", zap.String("appID", appID), --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@yunikorn.apache.org For additional commands, e-mail: issues-h...@yunikorn.apache.org