From 159994c1caf9a3376a6cd729173f5a2acc69e840 Mon Sep 17 00:00:00 2001 From: Zhonghu Xu Date: Thu, 18 Apr 2019 17:23:00 +0800 Subject: [PATCH] fix comment --- pkg/controllers/job/job_controller_actions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controllers/job/job_controller_actions.go b/pkg/controllers/job/job_controller_actions.go index a4e810c73d..db4e0ba2cb 100644 --- a/pkg/controllers/job/job_controller_actions.go +++ b/pkg/controllers/job/job_controller_actions.go @@ -66,7 +66,7 @@ func (cc *Controller) killJob(jobInfo *apis.JobInfo, nextState state.NextStateFn continue } - if err := cc.deleteJobPod(job.Name, pod); err != nil { + if err := cc.deleteJobPod(job.Name, pod); err == nil { terminating++ } else { errs = append(errs, err)