Skip to content

Commit 1992f4b

Browse files
infernus01aThorp96
andauthored
Apply suggestions from code review
Co-authored-by: Andrew Thorp <[email protected]>
1 parent 2eb7e4b commit 1992f4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/pod/status.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -781,12 +781,12 @@ func extractContainerFailureMessage(logger *zap.SugaredLogger, status corev1.Con
781781
}
782782
}
783783
if term.ExitCode != 0 {
784-
// Include the termination reason
784+
// Include the termination reason to add clarity for causes such as external signals, e.g. OOM
785785
return fmt.Sprintf("%q exited with code %d: %s", status.Name, term.ExitCode, term.Reason)
786786
}
787787
}
788788

789-
return ""
789+
return ""
790790
}
791791

792792
// IsPodExceedingNodeResources returns true if the Pod's status indicates there

0 commit comments

Comments
 (0)