Skip to content

Commit

Permalink
Add FailedPostStartHook to unrecoverable pod events list
Browse files Browse the repository at this point in the history
With the addition of lifecycle hooks to support postStart events, it's
necessary to consider 'FailedPostStartHook' as a fatal event in
workspace startup in order to show more info on workspace failures.
Without this, a workspace will eventually fail with CrashLoopBackoff
instead.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
  • Loading branch information
amisevsk committed Oct 28, 2021
1 parent 1108f3e commit 6ee719f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/provision/workspace/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ var containerFailureStateReasons = []string{
}

var unrecoverablePodEventReasons = []string{
"FailedPostStartHook",
"FailedMount",
"FailedScheduling",
"FailedCreate",
Expand Down

0 comments on commit 6ee719f

Please sign in to comment.