File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -251,13 +251,6 @@ func CheckContainerStatusForFailure(containerStatus *corev1.ContainerStatus, ign
251251 }
252252
253253 if containerStatus .State .Terminated != nil {
254- // Check if termination was due to a generic error, which might include postStart issues
255- // if the container failed to run.
256- if containerStatus .State .Terminated .Reason == "Error" || containerStatus .State .Terminated .Reason == "ContainerCannotRun" {
257- return checkIfUnrecoverableEventIgnored (containerStatus .State .Terminated .Reason , ignoredEvents ),
258- fmt .Sprintf ("%s: %s" , containerStatus .State .Terminated .Reason , containerStatus .State .Terminated .Message )
259- }
260- // Check against other generic failure reasons for terminated state
261254 for _ , failureReason := range containerFailureStateReasons {
262255 if containerStatus .State .Terminated .Reason == failureReason {
263256 return checkIfUnrecoverableEventIgnored (containerStatus .State .Terminated .Reason , ignoredEvents ),
You can’t perform that action at this time.
0 commit comments