Add support private ipv4 addresses annotation for NLB#1232
Conversation
|
This issue is currently awaiting triage. If cloud-provider-aws contributors determine this is a relevant issue, they will accept it by applying the The DetailsInstructions 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. |
|
Welcome @luckyganesh! |
|
Hi @luckyganesh. 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. DetailsInstructions 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. |
| sm.AllocationId = aws.String(allocationIDs[index]) | ||
| } | ||
| if len(privateIPv4Addresses) > 0 { | ||
| sm.PrivateIPv4Address = aws.String(privateIPv4Addresses[index]) |
There was a problem hiding this comment.
is there any guarantee that the order of private IP belongs to the subnet in the same index?
There was a problem hiding this comment.
There is no guarantee, but the user must provide it in the same order.
Even in the aws-load-balancer-controller it is the same behaviour.
https://kubernetes-sigs.github.io/aws-load-balancer-controller/latest/guide/service/annotations/#private-ipv4-addresses
There was a problem hiding this comment.
if we don't provide it in the same order, then the loadbalancer creation will fail from aws sdk itself.
|
/ok-to-test |
|
/retest |
|
@olemarkus please check it, all the tests are passing. Let me know incase if any changes are required |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: olemarkus The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
For an NLB in AWS, for subnet mapping I should be able to add a private ips from the subnets that I'm mapping to
https://kubernetes-sigs.github.io/aws-load-balancer-controller/latest/guide/service/annotations/#private-ipv4-addresses
Which issue(s) this PR fixes:
Fixes #1231
Special notes for your reviewer:
Does this PR introduce a user-facing change?: