-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Values precedence in helm 3.13.1 #12511
Comments
Can you give an example of what you're trying to achieve with expected input and output? |
I need a way to set values in the sub-charts from the parent chart. |
If you give an example of what you're trying and what's not working as you expect, that would help. The functionality here should still work: https://helm.sh/docs/chart_template_guide/subcharts_and_globals/#overriding-values-from-a-parent-chart |
Here an import is done with three helm versions. With three different outcome:
|
Can you upload this test harness as a gist? I believe library charts maintains the behavior you want. Try and see what you what happens marking The other thing I think you could do to maintain similar behavior is use the |
Not sure how to upload the complete package. Anyway there is no difference if I add type: library in the myimport Chart.yaml Basically the target is to create a parent chart consisting of a number of subcharts. The parent chart gives a fixed number of flavors with content defined by imports. The values from the imports will be realized in the subcharts. |
I was looking into this test:
For app2 it states that "has a value in the app chart and imports from the library. The app chart value should take precedence." That makes the order of precedence for imports to be lower than the sub.charts values. Contradicts the value precedence in the initial text. |
I actually fixed the problem and did a test verifying it. Please check and see if this is something that could be used. |
We are facing the exact same problem with Helm ver 3.13.1, that is being reported by @intetinte . |
Can you please retry with Helm 3.13.2 or higher. #12480 was the fix applied to Helm 3.13.2. And report if you still encounter unexpected behavior. |
@intetinte -- I apologize, Ive been trying to find time to get to the bottom of this issue. Helm 3.13 series did try to fix bugs in the import-values process (#12162, then fix/patch: #12480). It would help me greatly if the reproducing your issue was easily accessible. In particular, the gist doesn't accurately represent a chart file structure. It would be very helpful if I could do something like:
|
@gjenkins8
|
Initial data that the import-function starts with in helm: The flow in the current helm (from 3.13.1): The suggested above makes imports on top-level take precedence of the values in the subcharts. This is what the documentation for helm suggests. The change is backwards compatible (i.e don't interfere with other updates done in the import area). |
We are facing the same issues that are reported here by @intetinte and checked that, with his version the charts are rendered as expected (import values taking precedence of the sub-chart values), as it's documented. |
With this commit (#12480) the precedence was changed to:
1. User specified values (e.g CLI)
2. Sub-chart values
3. Imported values
4. Parent chart values
This makes it only possible to add new values to sub-charts from parent or imported values. Modify existing values is no longer possible. In helm versions 3.8.2-3.12.3 it was possible to fill in empty or null values in the sub-charts from imports or parent chart. This is no longer possible in helm 3.13.1
In helm 3.13.0, it was possible to change any value in sub-charts from the imported or parent charts.
Is the precedence in helm 3.13.1 the final word on this?
The text was updated successfully, but these errors were encountered: