Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Ensure expected load balancer is selected for Azure #62450
What this PR does / why we need it:
Azure cloud provider is always selecting the last element of LB list. The reason is: getServiceLoadBalancer() refers the pointer of an local variable within for loop:
This is a common mistake as golang is actually reusing same variable within the loop. This PR fixes this issue.
Which issue(s) this PR fixes (optional, in
Special notes for your reviewer:
[APPROVALNOTIFIER] This PR is APPROVED
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
@feiskyer: The following test failed, say