EmbarkStudios / k8s-buildkite-plugin

Run any buildkite build step as a Kubernetes Job
https://embark.dev
Apache License 2.0
49 stars 19 forks source link

Get job status when pod doesn't exist #36

Closed keith closed 3 years ago

keith commented 3 years ago

In the case a pod is scheduled on a node, then evicted, you can end up in a state where you search for the pod forever when the job was already know to have failed:

Error from server (NotFound): pods "ios-714750-zjyo7cyw-gsnzh" not found
Error from server (NotFound): pods "ios-714750-zjyo7cyw-gsnzh" not found
Error from server (NotFound): pods "ios-714750-zjyo7cyw-gsnzh" not found
Error from server (NotFound): pods "ios-714750-zjyo7cyw-gsnzh" not found
Error from server (NotFound): pods "ios-714750-zjyo7cyw-gsnzh" not found

This checks the job status and exits if it has failed in that case