Skip to content

Commit

Permalink
Merge pull request #112 from jfuechsl/ignore-pod-scheduling-error
Browse files Browse the repository at this point in the history
Ignore pod scheduling errors during deployments
  • Loading branch information
Cryptophobia authored Dec 13, 2019
2 parents 273a5f8 + e46e3df commit 7b5e2e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rootfs/scheduler/resources/pod.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,11 @@ def _handle_pod_errors(self, pod, reason, message):
"ErrImageNeverPull": "ErrImageNeverPullPolicy",
# Not including this one for now as the message is not useful
# "BackOff": "BackOffPullImage",
# FailedScheduling relates limits
"FailedScheduling": "FailedScheduling",
}
# We want to be able to ignore pod scheduling errors as they might be temporary
if not os.environ.get("DEIS_IGNORE_SCHEDULING_FAILURE", False):
# FailedScheduling relates limits
event_errors["FailedScheduling"] = "FailedScheduling"

# Nicer error than from the event
# Often this gets to ImageBullBackOff before we can introspect tho
Expand Down

0 comments on commit 7b5e2e7

Please sign in to comment.