-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: adding support for creating targets from ExternalName #3571
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
base: main
Are you sure you want to change the base?
Conversation
Welcome @msvticket! |
Hi @msvticket. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
8c92a38
to
7b34837
Compare
7b34837
to
21588bb
Compare
db436ab
to
e265988
Compare
Could you have a look at this @oliviassss ? |
any update on this? |
I woul like to get update on this as this seems much needed functionality in order to support certain usecases |
Any update? I would appreciate this functionality. |
Is there anything that's holding up this PR that someone could help finish? This would be really useful functionality to have. |
Is this something you can look at @shraddhabang? |
@johngmyers @M00nF1sh please review and merge! I'm begging you! |
f673254
to
f553585
Compare
f553585
to
bffcdc0
Compare
PR needs rebase. 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-sigs/prow repository. |
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.
I'm excited about this functionality getting built. I do think we need to be cognizant of dependents on this package and maintain a stable API surface for v2 however. Seems like some simple fix ups should get is back into that territory.
@@ -27,12 +28,17 @@ var ErrNotFound = errors.New("backend not found") | |||
type EndpointResolver interface { | |||
// ResolvePodEndpoints will resolve endpoints backed by pods directly. | |||
// returns resolved podEndpoints and whether there are unready endpoints that can potentially turn ready in future reconciles. | |||
ResolvePodEndpoints(ctx context.Context, svcKey types.NamespacedName, port intstr.IntOrString, | |||
opts ...EndpointResolveOption) ([]PodEndpoint, bool, error) | |||
ResolvePodEndpoints(ctx context.Context, svckey types.NamespacedName, svc *corev1.Service, port intstr.IntOrString, opts ...EndpointResolveOption) ([]IpEndpoint, 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.
There's no need for a breaking API change here. The variadic list of EndpointResolveOption
argument should eliminate that necessity, can just create a new one to the effect of WithService(*corev1.Service)
. This package is currently at v2, merging this would require tagging a v3 and that creates more churn for adoption than necessary.
// An endpoint provided by pod directly. | ||
type PodEndpoint struct { | ||
// IpEndpoint is an endpoint for an ip address | ||
type IpEndpoint struct { |
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.
Name here should remain stable
// Pod's IP. | ||
IP string | ||
// Pod's container port. | ||
Port int32 | ||
// Pod that provides this endpoint. | ||
Pod k8s.PodInfo | ||
Pod *k8s.PodInfo |
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 needs to remain backwards compatible
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: msvticket The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I don't mind putting some more time in this PR if it could be merged. But since this PR is ignored by the maintainers I don't see any point in spending that time now. |
Issue
#3505
Description
I added support for ip target groups when service is of type ExternalName.
I have not updated any documentation, but I'm happy to do that in case you want the code change to begin with.
Checklist
README.md
, or thedocs
directory)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯