fix(iptables-eip): look up subnet directly by name instead of resolving through NAD#6287
fix(iptables-eip): look up subnet directly by name instead of resolving through NAD#6287oilbeater merged 1 commit intokubeovn:masterfrom
Conversation
…ng through NAD Signed-off-by: Zespre Chang <zespre.chang@suse.com>
Summary of ChangesHello @starbops, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a bug in the iptables EIP controller by refining the subnet lookup mechanism. Previously, the controller would list all available subnets and then attempt to resolve the correct one through a NetworkAttachmentDefinition. This change introduces a more direct approach, allowing the controller to fetch the required subnet directly by its name, thereby improving efficiency and reducing potential points of failure in subnet identification. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
I didn't thoroughly check whether this has already been handled elsewhere. If you find that this PR is a duplicate or irrelevant, feel free to close it. Appreciate your time. cc @oilbeater |
|
@starbops You're correct. I will backport it to release-1.15. |
|
@oilbeater Thank you so much. |
|
@oilbeater I believe this commit is not backported to v1.15.0 yet. Can you please let us know once its backported ? So kubeovn webhook expects a subnet and does look up in subnet cache and controller looks up for the nad. kube-ovn/pkg/webhook/vpc_nat_gateway.go Line 402 in dedad47 I had to bypass the webhook check temporarily to verify the vpc nat gw functionality in v1.15.0. When I originally verified v1.15.0 with install script from kubeovn, it did not had the kubeovn webhook running, so I missed this error so went with the workaround of using a nad name in externalSubnet field of EIP. |
|
@rrajendran17 v1.15.4 has included this commit. |
…ng through NAD (kubeovn#6287) Signed-off-by: Zespre Chang <zespre.chang@suse.com> (cherry picked from commit 524b6c0) (cherry picked from commit 26dab97)
Pull Request
What type of this PR
Examples of user facing changes:
Which issue(s) this PR fixes
Fixes #6286