You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hips/hip-0016.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,9 @@ Users of a parent chart instead have to provide values to the subcharts directly
81
81
82
82
This HIP would allow to freely structure the values the user interacts with.
83
83
84
+
The problem described above is less severe, if the subchart author, parent chart author and consumer are the same person or team.
85
+
It becomes much more relevant for parent chart authors, that want to consume existing charts and provide it to a number of users without leaking the internal structure (i.e. the fact that it is using subcharts and how many) to the users.
86
+
84
87
## Rationale
85
88
86
89
Using the same parent chart as in the [specification](#specification) without `export-value`, the `port` value must match and must be specified twice by the user.
@@ -98,7 +101,13 @@ The proposed structure is not only cleaner for the user, but also less error pro
98
101
99
102
## Backwards Compatibility
100
103
101
-
This change won't break any existing Helm chart since it only adds new mechanisms.
104
+
On one hand this change won't break any existing Helm chart since it only adds new mechanisms.
105
+
On the other hand installing a chart which requires this feature with older versions of Helm make it fail silently, as values won't be passed to the child.
106
+
There is currently no way to specify a minimum Helm version.
107
+
The current workaround is to add this to a parent chart template, which will fix the otherwise silent failure:
108
+
`{{- if semverCompare ">3.10.0" .Capabilities.HelmVersion.Version }} {{- fail "This chart requires helm version 3.10.0 or higher" }} {{- end }}`.
109
+
A built-in mechanism to specify a minimum Helm version for a chart could be introduced in a separate HIP.
110
+
Until such time, the introduction of this `export-values` functionality would require documenting this workaround for chart authors who wish to make their parent charts depend on the Helm version that introduced this functionality.
0 commit comments