Fix chart rendering in dry-run or "helm template" scenarios#5760
Conversation
Summary of ChangesHello @abhishek-pandey-1, 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 critical bug in the Kube-OVN Helm charts that caused rendering failures during dry-run or Highlights
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
|
Summary of ChangesHello @abhishek-pandey-1, 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 resolves an issue preventing Kube-OVN Helm charts from rendering successfully in dry-run or Highlights
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
|
Summary of ChangesHello @abhishek-pandey-1, 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 resolves a critical bug in the Kube-OVN Helm charts that prevented them from being rendered successfully in dry-run or Highlights
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 correctly fixes an issue where helm template would fail due to the lookup function not being available during a dry run. The approach of checking the result of lookup before proceeding is sound. I've added a couple of suggestions to improve the readability of the new conditional logic by simplifying the if/else structure into a single if block. Overall, the changes are good and address the problem effectively.
There was a problem hiding this comment.
Code Review
This pull request correctly fixes an issue with Helm chart rendering during dry-runs by checking if the lookup function returns any nodes. The changes in _helpers.tpl for both kube-ovn and kube-ovn-v2 charts will prevent failures when a Kubernetes cluster is not available.
I've added a couple of suggestions to make the template logic more concise and idiomatic by simplifying the conditional checks. The proposed changes improve readability but the current implementation is also functionally correct.
There was a problem hiding this comment.
Code Review
This pull request fixes an issue with Helm chart rendering during dry-runs (helm template) by adding a check to the kubeovn.nodeIPs helper. When no nodes are found via lookup, which is typical in a dry-run, the helper now correctly returns an empty value instead of erroring out. The changes in both charts/kube-ovn-v2 and charts/kube-ovn are correct. I've added a couple of suggestions to improve the readability and follow a more idiomatic approach for the conditional logic in the Helm templates.
|
@abhishek-pandey-1 the DCO check failed, please sign off the commit. |
|
Ah - I didn't realize that was needed. I will resolve this.
…________________________________
From: Mengxin Liu ***@***.***>
Sent: Monday, September 29, 2025 2:35 PM
To: kubeovn/kube-ovn ***@***.***>
Cc: Abhishek Pandey ***@***.***>; Mention ***@***.***>
Subject: Re: [kubeovn/kube-ovn] Fix chart rendering in dry-run or "helm template" scenarios (PR #5760)
[https://avatars.githubusercontent.com/u/1189736?s=20&v=4]oilbeater left a comment (kubeovn/kube-ovn#5760)<#5760 (comment)>
@abhishek-pandey-1<https://github.com/abhishek-pandey-1> the DCO check failed, please sign off the commit.
—
Reply to this email directly, view it on GitHub<#5760 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ATSNKM2BTLVNITMDF4VCSFL3VEYRTAVCNFSM6AAAAACHZAYEYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGNBWHE4TAOJTGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
|
@abhishek-pandey-1 Could you check in on this again? |
|
Ah sorry - got too caught up in other things. Will fix this now. |
94cb609 to
8dbb40c
Compare
Signed-off-by: Abhishek Pandey <abhpandey@microsoft.com>
8dbb40c to
3df0192
Compare
|
@oilbeater @6ixfalls - fixed the problem. Happy for you to complete this at your own discretion |
Pull Request Test Coverage Report for Build 19138630281Details
💛 - Coveralls |
|
@abhishek-pandey-1 Thanks for coming back! |
Signed-off-by: Abhishek Pandey <abhpandey@microsoft.com>
Pull Request
What type of this PR
Examples of user facing changes:
Which issue(s) this PR fixes
Fixes #5752