From 915b0ab9070c603ee9dd87019489a09b97775976 Mon Sep 17 00:00:00 2001 From: HrimfaxiYKW <125539393+Colvin-Y@users.noreply.github.com> Date: Fri, 4 Aug 2023 02:28:35 -0700 Subject: [PATCH] [enhancement] fix comment error for function isJobFailed of broadcastjob (#1348) Signed-off-by: Colvin-Y --- pkg/controller/broadcastjob/broadcastjob_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/broadcastjob/broadcastjob_controller.go b/pkg/controller/broadcastjob/broadcastjob_controller.go index c38daf577a..c50ad1d5d0 100644 --- a/pkg/controller/broadcastjob/broadcastjob_controller.go +++ b/pkg/controller/broadcastjob/broadcastjob_controller.go @@ -493,7 +493,7 @@ func isJobComplete(job *appsv1alpha1.BroadcastJob, desiredNodes map[string]*core return true } -// isJobFailed checks if the job CompletionPolicy is not Never, and it has past the backofflimit or ActiveDeadlineSeconds. +// isJobFailed checks if the job CompletionPolicy is not Never, and it has past ActiveDeadlineSeconds. func isJobFailed(job *appsv1alpha1.BroadcastJob, pods []*corev1.Pod) (bool, string, string) { if job.Spec.CompletionPolicy.Type == appsv1alpha1.Never { return false, "", ""