mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 19:23:40 +00:00
Update pkg/controller/job/job_controller.go
Co-authored-by: Aldo Culquicondor <1299064+alculquicondor@users.noreply.github.com>
This commit is contained in:
parent
e45eef1d51
commit
d66c9ef286
@ -767,6 +767,7 @@ func (jm *Controller) syncJob(ctx context.Context, key string) (rErr error) {
|
|||||||
// if job was finished previously, we don't want to redo the termination
|
// if job was finished previously, we don't want to redo the termination
|
||||||
if util.IsJobFinished(&job) {
|
if util.IsJobFinished(&job) {
|
||||||
// The job shouldn't be marked as finished until all pod finalizers are removed.
|
// The job shouldn't be marked as finished until all pod finalizers are removed.
|
||||||
|
// Cleaning pod finalizers one more time just in case.
|
||||||
jm.cleanupPodFinalizers(&job)
|
jm.cleanupPodFinalizers(&job)
|
||||||
err := jm.podBackoffStore.removeBackoffRecord(key)
|
err := jm.podBackoffStore.removeBackoffRecord(key)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user