Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2021-09-14 09:04:59 +08:00
parent 5ba76eb911
commit 20b3cd5198

View File

@ -141,7 +141,7 @@ func (m *kubeGenericRuntimeManager) getImageUser(image string) (*int64, string,
// isInitContainerFailed returns true under the following conditions:
// 1. container has exited and exitcode is not zero.
// 2. container in unknown state.
// 2. container is in unknown state.
// 3. container gets OOMKilled.
func isInitContainerFailed(status *kubecontainer.Status) bool {
// When oomkilled occurs, init container should be considered as a failure.