feat(helm):Add affinity and nodeSelector support for ovs-ovn and ovs-ovn-dpdk DaemonSets using v2 chart#6308
Conversation
Summary of ChangesHello @morete, 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 introduces significant enhancements to the Kube-OVN v2 Helm chart by enabling advanced scheduling capabilities for the core 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
|
There was a problem hiding this comment.
Code Review
This pull request adds support for affinity and nodeSelector to the ovs-ovn and ovs-ovn-dpdk DaemonSets, making them configurable through the Helm chart's values. The changes are well-implemented by moving previously hardcoded values to the values.yaml file and referencing them in the templates. My review includes suggestions to improve the robustness of the Helm templates by using with blocks, which is a common practice to handle optional values gracefully and maintain consistency with other parts of the chart. The provided rule regarding Helm values.yaml and image tag consistency does not apply to these comments, so all original comments have been retained.
charts/kube-ovn-v2/templates/ovs-ovn/ovs-ovn-dpdk-daemonset.yaml
Outdated
Show resolved
Hide resolved
charts/kube-ovn-v2/templates/ovs-ovn/ovs-ovn-dpdk-daemonset.yaml
Outdated
Show resolved
Hide resolved
cf5bc70 to
1132e10
Compare
|
I have verified the rendering of both ovs-ovn and ovs-ovn-dpdk daemonsets under various scenarios:
Verification Results:
|
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request adds support for affinity and nodeSelector to the ovs-ovn and ovs-ovn-dpdk DaemonSets in the v2 Helm chart. The changes are well-implemented, using with blocks to conditionally render the new configurations and moving previously hardcoded values to values.yaml as defaults. This improves the chart's flexibility and configurability. The implementation follows Helm best practices, and the changes look good.
|
LGTM, thank you |
|
@oujonny your recently added "Lint and Test Charts" test doesn't seem to be running? I also notice we have those tests For the v1 Helm Chart, it has the benefits of testing if the Pods are ok, and passes a bunch of parameters to make Kube-OVN work. That might be a good idea. |
|
I would say my new test is not running because the source branch has not yet been updated/rebased. @morete, can you rebase your commits to the latest upstream master branch? :) I think for the v2 chart, we do not have to provide that much of paramets to make the kube-ovn installation run. The additional checks for the pods are nice. Let me add them with another PR. |
9f3bf6d to
752126d
Compare
|
@oujonny , rebased this branch now and test should then succeed. |
…pdk DaemonSets using v2 chart Signed-off-by: Juan Morete <juan.morete@swisscom.com>
… and ovs-ovn-dpdk DaemonSets Signed-off-by: Juan Morete <juan.morete@swisscom.com>
752126d to
742f4de
Compare
Pull Request Test Coverage Report for Build 22183976800Details
💛 - Coveralls |
|
@oujonny unsure what the pipeline is complaining about, but it is failing for some reason |
|
The helm chart linting is failing because the chart version got not updated. I would argue is a best practice to bump the chart version for each change. Similar as for docker images is not recommended to push multiple times to the same tag/version. But is seems like this practice is not applied to this chart. So not sure what to do know. |
|
@oujonny I think we can try to disable version check from option https://github.com/helm/chart-testing/blob/main/doc/ct_lint.md |
|
I recommend we address that in this PR #6311 We can let this test fail here, it doesn't really matter. |
|
Hi @oilbeater , Would you please release this one? I would need to have it available on helm chart v2 1.14.x and 1.15.x would that be possible? Thanks a lot! |
…ovn-dpdk DaemonSets using v2 chart (#6308) * feat: add affinity and nodeSelector support for ovs-ovn and ovs-ovn-dpdk DaemonSets using v2 chart Signed-off-by: Juan Morete <juan.morete@swisscom.com> * feat(chart): Add custom affinity and nodeSelector support for ovs-ovn and ovs-ovn-dpdk DaemonSets Signed-off-by: Juan Morete <juan.morete@swisscom.com> --------- Signed-off-by: Juan Morete <juan.morete@swisscom.com>
…ovn-dpdk DaemonSets using v2 chart (#6308) * feat: add affinity and nodeSelector support for ovs-ovn and ovs-ovn-dpdk DaemonSets using v2 chart Signed-off-by: Juan Morete <juan.morete@swisscom.com> * feat(chart): Add custom affinity and nodeSelector support for ovs-ovn and ovs-ovn-dpdk DaemonSets Signed-off-by: Juan Morete <juan.morete@swisscom.com> --------- Signed-off-by: Juan Morete <juan.morete@swisscom.com>
|
@morete I have cherry-pick it and will release on next version. |
|
Thanks a lot @oilbeater ! 🙏 |
Pull Request
What type of this PR
Which issue(s) this PR fixes
N/A
I need to get this ported back to helm chart v2 v1.14.x and v1.15.x