Skip to content

Commit

Permalink
Merge pull request kubernetes-retired#642 from Rajadeepan/event
Browse files Browse the repository at this point in the history
Add event when task is scheduled
  • Loading branch information
k8s-ci-robot authored Mar 15, 2019
2 parents eb7ba1d + 0e587a6 commit 2699233
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/scheduler/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,8 @@ func (sc *SchedulerCache) Bind(taskInfo *kbapi.TaskInfo, hostname string) error
go func() {
if err := sc.Binder.Bind(p, hostname); err != nil {
sc.resyncTask(task)
} else {
sc.Recorder.Eventf(p, v1.EventTypeNormal, "Scheduled", "Successfully assigned %v/%v to %v", p.Namespace, p.Name, hostname)
}
}()

Expand Down

0 comments on commit 2699233

Please sign in to comment.