mirror of https://github.com/k3s-io/k3s
Merge pull request #71844 from soltysh/describe_cronjob
Add failed and successful history limits to cronjob describepull/564/head
commit
e94befab0a
|
@ -2073,6 +2073,16 @@ func describeCronJob(cronJob *batchv1beta1.CronJob, events *corev1.EventList) (s
|
|||
w.Write(LEVEL_0, "Schedule:\t%s\n", cronJob.Spec.Schedule)
|
||||
w.Write(LEVEL_0, "Concurrency Policy:\t%s\n", cronJob.Spec.ConcurrencyPolicy)
|
||||
w.Write(LEVEL_0, "Suspend:\t%s\n", printBoolPtr(cronJob.Spec.Suspend))
|
||||
if cronJob.Spec.SuccessfulJobsHistoryLimit != nil {
|
||||
w.Write(LEVEL_0, "Successful Job History Limit:\t%d\n", cronJob.Spec.SuccessfulJobsHistoryLimit)
|
||||
} else {
|
||||
w.Write(LEVEL_0, "Successful Job History Limit:\t<unset>\n")
|
||||
}
|
||||
if cronJob.Spec.FailedJobsHistoryLimit != nil {
|
||||
w.Write(LEVEL_0, "Failed Job History Limit:\t%d\n", *cronJob.Spec.FailedJobsHistoryLimit)
|
||||
} else {
|
||||
w.Write(LEVEL_0, "Failed Job History Limit:\t<unset>\n")
|
||||
}
|
||||
if cronJob.Spec.StartingDeadlineSeconds != nil {
|
||||
w.Write(LEVEL_0, "Starting Deadline Seconds:\t%ds\n", *cronJob.Spec.StartingDeadlineSeconds)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue