-
Notifications
You must be signed in to change notification settings - Fork 272
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]: Duplication of common chart template causes conflicts #4002
Comments
I don't think the way you have described the problem is quite correct. In the router chart Perhaps that could be resolved by renaming:
to
in the router templates: _helpers.tpl. @krtk6160 What do you think? |
There is a naming clash with bitnami common templates used in other charts. This is unfortunate when used in a chart which has multiple dependencies where names may clash. The straightforward fix is to rename our templates from common to apollo. fixes: #4002
Yes, what I meant was that because the template function (or part of it) was copied from the common chart without name change, the result is effectively an override, albeit unintentional. Helm gives precedence to the definition in the apollo chart for the
Yes, I tried that change locally and it does fix the problem. |
There is a naming clash with bitnami common templates used in other charts. This is unfortunate when used in a chart which has multiple dependencies where names may clash. The straightforward fix is to rename our templates from common to apollographql. fixes: #4002 <!-- start metadata --> --- **Checklist** Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review. - [x] Changes are compatible[^1] - [x] Documentation[^2] completed **Exceptions** *Note any exceptions here* **Notes** [^1]: It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this. [^2]: Configuration is an important part of many changes. Where applicable please try to document configuration examples. [^3]: Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions.
Describe the bug
The apollo router chart overrides the
common.tplvalues.render
template function from the bitnami common chart, instead of using the common chart as a dependency. This causes a problem when the router chart is a dependency of a chart that also has an indirect dependency to the common chart.To explain with an example:
if
chart A
hasrouter
andchart B
as its dependencies, andchart B
in turn has thecommon
chart as its dependency, then the template definition from therouter
chart will be used whenchart B
makes a call to the template function. This won't be a problem if the definitions are identical, but there have been a few changes to thecommon
chart that changed the definition. This caused one of our charts, which is in the same situation aschart A
in the example above, to break.To Reproduce
Steps to reproduce the behavior:
A
that hasrouter:1.25.0
andbitnami/redis:18.1.2
as its dependencies.helm template
on chart A.Expected behavior
The router chart shouldn't override anything from the common chart, especially since the common chart is widely used as a dependency for numerous charts in the helm community. It should instead use the common chart as a dependency.
Output
Additional context
You can see the error in one of our github actions.
The text was updated successfully, but these errors were encountered: