Skip to content

Commit 7e4dbba

Browse files
committed
Fix describe error of Successful Job History Limit
1 parent c3e8a43 commit 7e4dbba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kubectl/describe/versioned/describe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2120,7 +2120,7 @@ func describeCronJob(cronJob *batchv1beta1.CronJob, events *corev1.EventList) (s
21202120
w.Write(LEVEL_0, "Concurrency Policy:\t%s\n", cronJob.Spec.ConcurrencyPolicy)
21212121
w.Write(LEVEL_0, "Suspend:\t%s\n", printBoolPtr(cronJob.Spec.Suspend))
21222122
if cronJob.Spec.SuccessfulJobsHistoryLimit != nil {
2123-
w.Write(LEVEL_0, "Successful Job History Limit:\t%d\n", cronJob.Spec.SuccessfulJobsHistoryLimit)
2123+
w.Write(LEVEL_0, "Successful Job History Limit:\t%d\n", *cronJob.Spec.SuccessfulJobsHistoryLimit)
21242124
} else {
21252125
w.Write(LEVEL_0, "Successful Job History Limit:\t<unset>\n")
21262126
}

0 commit comments

Comments
 (0)