Fix Job describe for completion mode

Kubernetes-commit: 2fd8dd1724e4d8a2740c834ae971cf876f2fd2a3
This commit is contained in:
Aldo Culquicondor 2021-04-15 21:15:09 +00:00 committed by Kubernetes Publisher
parent c58bb87452
commit 0fb45f1128
1 changed files with 1 additions and 1 deletions

View File

@ -2166,7 +2166,7 @@ func describeJob(job *batchv1.Job, events *corev1.EventList) (string, error) {
w.Write(LEVEL_0, "Completions:\t<unset>\n") w.Write(LEVEL_0, "Completions:\t<unset>\n")
} }
if job.Spec.CompletionMode != nil { if job.Spec.CompletionMode != nil {
w.Write(LEVEL_0, "Completion Mode:\t%s\n", job.Spec.CompletionMode) w.Write(LEVEL_0, "Completion Mode:\t%s\n", *job.Spec.CompletionMode)
} }
if job.Status.StartTime != nil { if job.Status.StartTime != nil {
w.Write(LEVEL_0, "Start Time:\t%s\n", job.Status.StartTime.Time.Format(time.RFC1123Z)) w.Write(LEVEL_0, "Start Time:\t%s\n", job.Status.StartTime.Time.Format(time.RFC1123Z))