Skip to content

Commit 5d67d65

Browse files
authored
chore(controller): pod failed do not rollback (#159)
1 parent 1402b5f commit 5d67d65

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • rootfs/scheduler/resources

rootfs/scheduler/resources/pod.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ def _handle_pod_errors(self, pod, reason, message):
523523
'ImagePullBackOff',
524524
'RegistryUnavailable',
525525
'ErrImageInspect',
526+
"CreateContainerError",
526527
]
527528
# Image event reason mapping
528529
event_errors = {
@@ -537,7 +538,7 @@ def _handle_pod_errors(self, pod, reason, message):
537538

538539
# Nicer error than from the event
539540
# Often this gets to ImageBullBackOff before we can introspect tho
540-
if reason == 'ErrImagePull':
541+
if reason in ['ErrImagePull', 'CreateContainerError']:
541542
raise KubeException(message)
542543

543544
# collect all error messages of worth

0 commit comments

Comments
 (0)