From e83cce5d137685c3e7d279b33bc9dbd2697d57a2 Mon Sep 17 00:00:00 2001 From: Rajadeepan Date: Wed, 13 Mar 2019 12:55:54 +0000 Subject: [PATCH] Add event when task is scheduled --- pkg/scheduler/cache/cache.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/scheduler/cache/cache.go b/pkg/scheduler/cache/cache.go index df0b533bf..517a6f6ee 100644 --- a/pkg/scheduler/cache/cache.go +++ b/pkg/scheduler/cache/cache.go @@ -424,6 +424,7 @@ func (sc *SchedulerCache) Bind(taskInfo *kbapi.TaskInfo, hostname string) error if err := sc.Binder.Bind(p, hostname); err != nil { sc.resyncTask(task) } + sc.Recorder.Eventf(p, v1.EventTypeNormal, "Scheduled", "Successfully assigned %v/%v to %v", p.Namespace, p.Name, hostname) }() return nil