Skip to content

Commit

Permalink
Job: Fix back-off limit value in Icinga state reason
Browse files Browse the repository at this point in the history
  • Loading branch information
lippserd committed Aug 16, 2024
1 parent 3a77224 commit 3b1742d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/schema/v1/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func (j *Job) getIcingaState(job *kbatchv1.Job) (IcingaState, string) {
reason := fmt.Sprintf(
"Job %s/%s is running since %s with currently %d active, %d completed and %d failed pods. "+
"Successful termination requires %s. The back-off limit is %d.",
j.Namespace, j.Name, job.Status.StartTime, j.Active, j.Succeeded, j.Failed, completions, job.Spec.BackoffLimit)
j.Namespace, j.Name, job.Status.StartTime, j.Active, j.Succeeded, j.Failed, completions, *job.Spec.BackoffLimit)

if job.Spec.ActiveDeadlineSeconds != nil {
reason += fmt.Sprintf(" Deadline for completion is %d.", job.Spec.ActiveDeadlineSeconds)
Expand Down

0 comments on commit 3b1742d

Please sign in to comment.