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
fix e2e test apiserver endpoint and endpointslices #104664
fix e2e test apiserver endpoint and endpointslices #104664
Conversation
/sig network |
185237e
to
5771052
Compare
5771052
to
d2a6d57
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.
Thanks for the work on this @aojea! You covered a lot of great edge cases with this one and significantly improved the test.
d2a6d57
to
18ce25d
Compare
The e2e test "should have Endpoints and EndpointSlices pointing to the API Server Service" was veryfing the current endpoints reconciler implementation on the apiservers, however, users may disable the endpoint reconciler and create their own. This e2e test is also a conformance test, so we should test the behaviour and not the implementation details. The test verifies that a kubernetes.default service exist, an endpoint and endpoint slices object referencing that service exist and are equivalent.
18ce25d
to
2a5ad65
Compare
/retest
|
Thanks! /lgtm |
/triage accepted |
/assign @johnbelamaric |
/lgtm |
/assign @spiffxp @smarterclayton |
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.
/approve
/lgtm
Thank you for doing this, much cleaner
slicePorts := sets.NewInt32() | ||
for _, slice := range endpointSliceList.Items { | ||
if slice.AddressType != addrType { | ||
framework.Logf("Skipping slice %s: wanted %s family, got %s", slice.Name, addrType, slice.AddressType) |
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.
Should we be skipping or failing because the family is unexpected?
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.
OK, I guess it's more ignoring or filtering down to what we're looking for
If the server didn't return any addresses of our expected family we'd error on not found
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.
There is a kep to dualstack the Apiserver , in theory it should report for each family but is not clear defined, and failing means is not allowed, that is not completely correct
/retest Thanks |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aojea, khenidak, spiffxp 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 |
The e2e test "should have Endpoints and EndpointSlices pointing to
the API Server Service" was veryfing the current endpoints
reconciler implementation on the apiservers, however, users may
disable the endpoint reconciler and create their own.
This e2e test is also a conformance test, so we should test the
behaviour and not the implementation details, so we just verify
that a kubernetes.default service exist, an endpoint and endpoint
slices object referencing that service exist with the same endpoints.
/kind bug
/kind cleanup
/kind documentation
/kind failing-test
Fixes #104612