Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E: check for uninstall pod init container successfully completed #113

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions test/e2e/cleanup/submariner.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ func (m *podMonitor) assertUninstallPodsCompleted() {
Expect(m.pods).ToNot(BeEmpty(), fmt.Sprintf("No uninstall pods were created for component %q", m.name))

for name, info := range m.pods {
if info.status.Phase == corev1.PodRunning {
if info.status.InitContainerStatuses[0].State.Terminated != nil &&
info.status.InitContainerStatuses[0].State.Terminated.ExitCode == 0 {
continue
}

Expand All @@ -318,7 +319,7 @@ func (m *podMonitor) assertUninstallPodsCompleted() {
log = info.log
}

Fail(fmt.Sprintf("Pod %q did not complete\nSTATUS: %s\n\nLOG\n: %s\n", name, string(status), log))
Fail(fmt.Sprintf("Pod %q did not complete successfully\nSTATUS: %s\n\nLOG\n: %s\n", name, string(status), log))
}
}

Expand Down
Loading