mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-04-24 23:57:49 -04:00
Merge pull request #86142 from raz-bn/add-complete-event
Adding new job completed event
This commit is contained in:
commit
42fe74cd2c
1 changed files with 1 additions and 0 deletions
|
|
@ -566,6 +566,7 @@ func (jm *JobController) syncJob(key string) (bool, error) {
|
|||
job.Status.Conditions = append(job.Status.Conditions, newCondition(batch.JobComplete, "", ""))
|
||||
now := metav1.Now()
|
||||
job.Status.CompletionTime = &now
|
||||
jm.recorder.Event(&job, v1.EventTypeNormal, "Completed", "Job completed")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue