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
mongodb:
initdbScriptsConfigMap: '{{ include "common.names.fullname" $ }}-configmap'
Because according to this code no templating is allowed.
Without this possibility the configmap name must be hardcoded.
What is the feature you are proposing to solve the problem?
A simple solution is to change in the code the following line : {{- printf "%s" .Values.initdbScriptsConfigMap -}}
by this one {{- printf "%s" (tpl .Values.initdbScriptsConfigMap $) -}}
tpl is often used in bitnami charts (postgresql, even in mongodb chart) in order to allow this kind of templating
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered:
Thank you so much for the feature request. I will forward it to the team, but as it is not a critical feature, we cannot guarantee an ETA. If you want to speed up the process, would you like to submit a PR adding this feature?
AzHicham
changed the title
[bitnami/redis] Allow templating for initdbScriptsConfigMap
[bitnami/mongodb] Allow templating for initdbScriptsConfigMap
May 21, 2024
Thank you for opening this issue and submitting the associated Pull Request. Our team will review and provide feedback. Once the PR is merged, the issue will automatically close.
Name and Version
bitnami/mongodb 15.4.3
What is the problem this feature will solve?
Right now it's not possible to do the following:
Because according to this code no templating is allowed.
Without this possibility the configmap name must be hardcoded.
What is the feature you are proposing to solve the problem?
A simple solution is to change in the code the following line :
{{- printf "%s" .Values.initdbScriptsConfigMap -}}
by this one
{{- printf "%s" (tpl .Values.initdbScriptsConfigMap $) -}}
tpl is often used in bitnami charts (postgresql, even in mongodb chart) in order to allow this kind of templating
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: