mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Job completed event added
This commit is contained in:
parent
7933002ba2
commit
0224c48120
@ -566,6 +566,7 @@ func (jm *JobController) syncJob(key string) (bool, error) {
|
|||||||
job.Status.Conditions = append(job.Status.Conditions, newCondition(batch.JobComplete, "", ""))
|
job.Status.Conditions = append(job.Status.Conditions, newCondition(batch.JobComplete, "", ""))
|
||||||
now := metav1.Now()
|
now := metav1.Now()
|
||||||
job.Status.CompletionTime = &now
|
job.Status.CompletionTime = &now
|
||||||
|
jm.recorder.Event(&job, v1.EventTypeNormal, "Completed", "Job completed")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user