mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +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:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user