-
Notifications
You must be signed in to change notification settings - Fork 303
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
Degraded mode e2e #2066
Degraded mode e2e #2066
Conversation
Hi @sawsa307. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @swetharepakula |
c6e7da1
to
ab8feab
Compare
ab8feab
to
095fc0f
Compare
095fc0f
to
04856fe
Compare
e192904
to
341c6ed
Compare
341c6ed
to
57e8d93
Compare
57e8d93
to
eb6730c
Compare
eb6730c
to
3fabdda
Compare
3fabdda
to
19f17f2
Compare
d86a0cf
to
87de629
Compare
/retest |
cmd/e2e-test/neg_test.go
Outdated
epsName = "custom-endpointslice" | ||
svcName = "service-1" | ||
replicas = int32(2) | ||
endpointAttach = int32(2) |
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.
these are still type int32? Is this needed?
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.
Updated.
cmd/e2e-test/neg_test.go
Outdated
// deployment with labels not matched to the service so the desired | ||
// number of podIPs are created and not used by the existing | ||
// endpoint slice. | ||
if err := e2e.EnsureEchoDeployment(s, epsName, endpointAttach, e2e.NoopModify); err != nil { |
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.
Can we do this setup before running through all of the test cases?
E.g. do we need to redploy new Pods every time through the test case or just recreate the endpointslices?
E.g. setup the Pods before we start.
Then we can make the expected not just be a count but more explicitly the Pods we expect to show up in the slice based on what has been created.
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.
Let's pull the setup pods out of the for loop for the 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.
Done. Thank you!
87de629
to
555cd08
Compare
bf1cef7
to
95a9de9
Compare
/retest |
2bcf3da
to
2762336
Compare
Create e2e test for degraded mode. When an endpointslice contains endpoint with missing or empty nodeName, this should be filled during degraded mode. When an endpointslice contains endpoint with invalid pod information, or the endpoint has an IP that doesn't correspond to any podIP, this endpoint should be filtered out.
2762336
to
045cc03
Compare
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sawsa307, swetharepakula The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Create e2e test for degraded mode.
When an endpointslice contains endpoint with missing or empty nodeName, this should be filled during degraded mode. When an endpointslice contains endpoint with invalid pod information, or the endpoint has an IP that doesn't correspond to any podIP, this endpoint should be filtered out.