-
Notifications
You must be signed in to change notification settings - Fork 647
[occm] Fix floating IP allocation for shared internal load balancers #2948
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: master
Are you sure you want to change the base?
[occm] Fix floating IP allocation for shared internal load balancers #2948
Conversation
The committers listed above are authorized under a signed CLA. |
Welcome @skartikey! |
Hi @skartikey. 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-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
/ok-to-test |
What this PR does / why we need it:
Fixes an issue where the OpenStack Cloud Controller Manager incorrectly attempts to allocate floating IPs when sharing internal load balancers between services. This causes spurious warnings and potential failures when using the load balancer sharing feature with internal services.
What happened:
When sharing an internal load balancer (marked with
service.beta.kubernetes.io/openstack-internal-load-balancer: "true"
), the controller would still try to attach a floating IP to the shared load balancer, even though internal load balancers should not have floating IPs by design.What this PR does:
ensureFloatingIP
to skip floating IP operations for shared internal load balancersWhich issue this PR fixes(if applicable):
fixes #2891
Special notes for reviewers:
This change only affects the code path for services that are both internal (
svcConf.internal = true
) and not the load balancer owner (isLBOwner = false
). All existing behavior for external load balancers and load balancer owners remains unchanged.Release note: