-
Notifications
You must be signed in to change notification settings - Fork 742
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
add service connectivity test #1436
Conversation
- nlb using in tree service controller - clb using in tree service controller - nodeport - clusterIP
return err | ||
} | ||
observedJob := &v1.Job{} | ||
return wait.PollImmediateUntil(utils.PollIntervalShort, func() (bool, error) { |
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.
Is there a reason we need to wait for the job to be deleted?
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.
This is to cleanly transition to new test case. For instance once the new test is running the older Job's pod will not be in Running/Terminating state so it will not influence the results of the new test cases.
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.
Sounds good :)
deploymentContainer = manifest.NewBusyBoxContainerBuilder(). | ||
Image("python"). | ||
Command([]string{"python3"}). | ||
Args([]string{"-m", "http.server", "80"}).Build() |
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.
What about HTTPS? Are you planning to add it later?
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.
Good point! I have taken up an AI to add HTTPS tests later.
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.
Looks good.
What type of PR is this?
Integration test
Which issue does this PR fix:
Adds test for verifying connectivity to pods behind service in the following modes
What does this PR do / Why do we need it:
Integration testing
If an issue # is not available please add repro steps and logs from IPAMD/CNI showing the issue:
Testing done on this change:
NA
Automation added to e2e:
NA
Will this break upgrades or downgrades. Has updating a running cluster been tested?:
NA
Does this change require updates to the CNI daemonset config files to work?:
NA
Does this PR introduce any user-facing change?:
NA
Output
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.