Skip to content

Commit 7b5e2e7

Browse files
authored
Merge pull request #112 from jfuechsl/ignore-pod-scheduling-error
Ignore pod scheduling errors during deployments
2 parents 273a5f8 + e46e3df commit 7b5e2e7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • rootfs/scheduler/resources

rootfs/scheduler/resources/pod.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,11 @@ def _handle_pod_errors(self, pod, reason, message):
577577
"ErrImageNeverPull": "ErrImageNeverPullPolicy",
578578
# Not including this one for now as the message is not useful
579579
# "BackOff": "BackOffPullImage",
580-
# FailedScheduling relates limits
581-
"FailedScheduling": "FailedScheduling",
582580
}
581+
# We want to be able to ignore pod scheduling errors as they might be temporary
582+
if not os.environ.get("DEIS_IGNORE_SCHEDULING_FAILURE", False):
583+
# FailedScheduling relates limits
584+
event_errors["FailedScheduling"] = "FailedScheduling"
583585

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

0 commit comments

Comments
 (0)