mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Fix Job describe for completion mode
This commit is contained in:
parent
a55bd63172
commit
2fd8dd1724
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user