-
Notifications
You must be signed in to change notification settings - Fork 148
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
[helm] reload chart for each example folder #6475
[helm] reload chart for each example folder #6475
Conversation
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
Quality Gate passedIssues Measures |
Does running init mean that we do a dependency pull on each invocation?
Does this also happen if the dependency is controlled via a condition in the values file? |
Thank you for the question @swiatekm 🙂
There is no dependency pull while loading the Helm chart from a path (
My observation is that using the same I hope this helps clarify the behaviour I have observed, let me know if you have further questions. |
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.
I don't think this change has any negative side effects, but it feels like we're working around a bug in Helm.
(cherry picked from commit ed8e351)
(cherry picked from commit ed8e351)
(cherry picked from commit ed8e351)
(cherry picked from commit ed8e351) Co-authored-by: Panos Koutsovasilis <[email protected]>
(cherry picked from commit ed8e351) Co-authored-by: Panos Koutsovasilis <[email protected]>
(cherry picked from commit ed8e351) Co-authored-by: Panos Koutsovasilis <[email protected]>
What does this PR do?
This PR fixes an issue with the Helm chart examples rendering. Specifically, the Helm chart is now reloaded for each example folder. Previously, the chart was loaded once and reused, which leads to stale data when different examples enable or disable subchart dependencies (spoiler alert for the upcoming kube-state-metrics subchart dependency PR I am working on).
Why is it important?
Reloading the Helm chart for each example folder ensures correctness in the rendered k8s manifests.
Checklist
./changelog/fragments
using the changelog toolDisruptive User Impact
How to test this PR locally
Related issues
N/A