-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Improve source ip preservation test, fail the test instead of panic. #34030
Conversation
if len(outputs) != 2 { | ||
// fail the test if output format is unexpected | ||
framework.Failf("exec pod returned unexpected stdout format: [%v]\n", stdout) | ||
return execPodIp, "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI the Failf
will abort, so you don't really need this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, thanks for telling!
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
Commit found in the "release-1.4" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
…-of-#34030-kubernetes#34107-upstream-release-1.4 Automatic merge from submit-queue Automated cherry pick of kubernetes#34030 kubernetes#34107 Cherry pick of kubernetes#34030 kubernetes#34107 on release-1.4. kubernetes#34030: examine output format before return, fail the test instead of kubernetes#34107: Fix kubernetes#31085, include output checking in retry loop
From #31085.
The source IP preserve test starts to be flake again. Sending out this PR to get rid of panicing and log the unexpected output for future investigation.
@freehan
This change is