mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +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 util.IsJobFinished(&job) {
|
||||
// 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)
|
||||
err := jm.podBackoffStore.removeBackoffRecord(key)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user