Merge pull request #125401 from bitoku/fix-fail-message

Fix E2E error message
This commit is contained in:
Kubernetes Prow Robot
2024-06-28 16:48:38 -07:00
committed by GitHub

View File

@@ -536,7 +536,7 @@ var _ = SIGDescribe("InitContainer", framework.WithNodeConformance(), func() {
return false, nil
}
if status.State.Terminated != nil && status.State.Terminated.ExitCode != 0 {
return false, fmt.Errorf("first init container should have exitCode != 0: %s", toDebugJSON(status))
return false, fmt.Errorf("first init container should have exitCode == 0: %s", toDebugJSON(status))
}
status = t.Status.InitContainerStatuses[1]
if status.State.Terminated == nil {