List of Kubernetes status conditions for jobs?
kubectl get jobs <myjob> --namespace <mynamespae> -o jsonpath='{.status.conditions[?(@.type=="Succeeded")].status}'
The kubernetes API docs for JobCondition imply that the only type
values are “Complete” and “Failed”, and that they may have a ”True”
or ”False”
status
.
In addition to the job status conditions array, you may also find it informative to look at the job status active
count, and the startTime
and completionTime
if you’re just interested in whether it’s finished.