This is an automated email from the ASF dual-hosted git repository.
pbacsko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-k8shim.git
The following commit(s) were added to refs/heads/master by this push:
new 22228dfa [YUNIKORN-2704] Event publish errors out when predicates fail
(#863)
22228dfa is described below
commit 22228dfade3b27909adf62a43fca97f61b2876fe
Author: Peter Bacsko <[email protected]>
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 <[email protected]>
---
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 45e74017..1575d5f8 100644
--- a/pkg/cache/context.go
+++ b/pkg/cache/context.go
@@ -1187,7 +1187,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: [email protected]
For additional commands, e-mail: [email protected]