-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Added check to validate IPv6Address changes #3764
base: main
Are you sure you want to change the base?
Conversation
Welcome @parambath92! |
Hi @parambath92. Thanks for your PR. I'm waiting for a kubernetes-sigs 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: parambath92 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 |
Hi @kishorj @wweiwei-li , Can you please review this change ? |
/ok-to-test |
Hi @shraddhabang , looks like the tests went through. Can you please review ? |
@@ -161,7 +161,9 @@ func (m *defaultLoadBalancerManager) updateSDKLoadBalancerWithSubnetMappings(ctx | |||
for _, az := range sdkLB.LoadBalancer.AvailabilityZones { | |||
currentSubnets.Insert(awssdk.StringValue(az.SubnetId)) | |||
} | |||
if desiredSubnets.Equal(currentSubnets) { | |||
desiredIPAddressType := string(*resLB.Spec.IPAddressType) |
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.
Hey, I believe we need to check whether IPv6Address is updated rather than IPAddressType. Also, While checking IPv6Address, make sure it won't impact ingress behavior as I think the ALB does not support assign static ip. resLB.Spec.Type != elbv2model.LoadBalancerTypeApplication
@parambath92 any updates ? |
Hi @witalisoft , |
Hi @wweiwei-li , Can you please review if this change is fine ? |
@parambath92 any updates ? |
Hi @wweiwei-li , Looks like the job failed in the run. Can you please take a look at it and let me know ? |
Sorry for the late reply. I will review it today |
@parambath92 Have you tried building your code ? I think your code has some issues. I was thing something like the above. Can you take a look ? |
@parambath92 any updates ? |
Hi @wweiwei-li , I have made the changes. Can you please review the PR ? |
/ok-to-test |
if len(az.LoadBalancerAddresses) > 0 && az.LoadBalancerAddresses[0].IPv6Address != nil { | ||
currentIPv6Addresses.Insert(awssdk.ToString(az.LoadBalancerAddresses[0].IPv6Address)) | ||
} | ||
currentSubnets.Insert(awssdk.ToString(az.SubnetId)) |
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.
currentSubnets.Insert(awssdk.ToString(az.SubnetId))
duplicate line.
Thinking further, we may also want to check if the |
Hey, There may be more consideration needed than expected. I would like to take a closer look and take over this fix. |
PR needs rebase. 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. |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
Issue
Fixes bug #3743
Description
Added one more check validating if
currentIPAddressType
is updated the same asdesiredIPAddressType
(defined in the service configuration) when the IP Address Type is changed todualstack
mode with the IPv6 addresses defined in thedualstack
mode.Checklist
README.md
, or thedocs
directory)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯