-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Return unique addresses from service #6097
Conversation
Welcome @hazim1093! |
Hi @hazim1093. 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 @bowei |
@hazim1093 thank you for the PR. I would prefer the use of |
Hi @aledbf, |
@hazim1093 please squash the commits and this lgtm |
/ok-to-test |
b62f71d
to
32b8a3a
Compare
/retest |
/lgtm |
@hazim1093 thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aledbf, hazim1093 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 |
What this PR does / why we need it:
When the
ExternalIP
of a Service andstatus.loadBalancer.ingress.ip
has the same value, the ingress controller assigns duplicate IPs to the ingress.This behaviour was noticed while using inlets-operator to provision a VM load balancer for service of type LoadBalancer.
Even though it might be a corner case, I felt it makes sense to assign only unique IPs to the ingress. Having duplicate IPs in the ingress also affects other services which deal with the IPs e.g. external-dns.
Example snippet from
service
(IP addresses have been changed)Example snippet of affected
ingress
Types of changes
How Has This Been Tested?
I have added a test case for the method returning a unique list.
I also tested the controller by building an image, and running it in a kubernetes environment along side a service with the same values for
externalIP
andstatus.loadBalancer.ingress.ip
. The controller now only assigns unique IPs to the ingress.Checklist: