Merge pull request #101160 from alculquicondor/describe-completion-mode

Fix Job describe for completion mode
This commit is contained in:
Kubernetes Prow Robot 2021-04-16 11:55:00 -07:00 committed by GitHub
commit 356a647172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2166,7 +2166,7 @@ func describeJob(job *batchv1.Job, events *corev1.EventList) (string, error) {
w.Write(LEVEL_0, "Completions:\t<unset>\n")
}
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 {
w.Write(LEVEL_0, "Start Time:\t%s\n", job.Status.StartTime.Time.Format(time.RFC1123Z))