-
Notifications
You must be signed in to change notification settings - Fork 41.1k
cloudprovider: Remove GetLoadBalancerName from LoadBalancer interface #133423
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?
Conversation
The GetLoadBalancerName method is obsolete and no longer used by the cloud provider. This commit removes the method from the LoadBalancer interface and tests. The method is problematic, because it surfaces a cloud-specific concept without clear direction as to how it is used. Cloud providers may have multiple identifiers for a single load balancer.
Please note that we're already in Test Freeze for the Fast forwards are scheduled to happen every 6 hours, whereas the most recent run was: Thu Aug 7 08:56:53 UTC 2025. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: justinsb 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 |
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
@justinsb: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
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 think this looks ok, do we have any idea about the coverage of SIG owned providers that are using the GetLoadBalancerName
interface?
I can try to take a look, but I want to point out that we specifically need to worry about providers that use GetLoadBalancerName through our LoadBalancer Interface (I believe). In other words, nothing should stop (say) AWS from implementing GetLoadBalancerName on their load balancer implementation, it just isn't part of the standard LoadBalancer interface. So we're looking for generic controller implementations that use LoadBalancer and GetLoadBalancerName - and I think the canonical one is in this repo. Of course if I'm wrong about this then I don't think we want this PR! The reason for this PR, BTW, is that on GCP we have many objects, and if we are to implement multiple protocols then we need two ForwardingRules, and thus there will definitely be two names. It's not the end of the world to keep this method (we still have a "base name" which we will use for singleton objects), but I realized that we aren't actually using this method here so it's just a cause for (my) confusion. |
that makes good sense to me. my concern, albeit perhaps unfounded, is that there is some cloud provider using the default implementation. i /think/ the changes here shouldn't affect that, but i was just curious.
makes sense, and i tend to agree about the rationale. |
The GetLoadBalancerName method is obsolete and no longer used by the cloud provider. This commit removes the method from the LoadBalancer interface and tests.
The method is problematic, because it surfaces a cloud-specific concept without clear direction as to how it is used. Cloud providers may have multiple identifiers for a single load balancer.
/kind cleanup