Files
charts/bitnami/mongodb/templates/initialization-configmap.yaml
benjamin-wright 055679aac7 [bitnami/mongodb] adding local and global namespace overrides for mongodb (#2351)
* update to allow parent charts to override the namespace in the mongodb chart

* correct readme mistake

* add global namespace overrides

* reuse mongodb.namespace template

* add global namespace override to production values.yaml

* first of the review updates

* minor version bump

* remove redundant local namespaceOverride, can just use the global with fewer edge-cases

* typo in .values

* [bitnami/mongodb] Update components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

Co-authored-by: Ben Wright <benjamin.wright@nielsen.com>
Co-authored-by: Bitnami Containers <containers@bitnami.com>
Co-authored-by: Miguel Ángel Cabrera Miñagorri <macabrera@bitnami.com>
2020-04-22 09:49:49 +02:00

15 lines
513 B
YAML

{{ if (.Files.Glob "files/docker-entrypoint-initdb.d/*[sh|js|json]") }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "mongodb.fullname" . }}-init-scripts
namespace: {{ template "mongodb.namespace" . }}
labels:
app: {{ template "mongodb.name" . }}
chart: {{ template "mongodb.chart" . }}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
data:
{{ tpl (.Files.Glob "files/docker-entrypoint-initdb.d/*[sh|js|json]").AsConfig . | indent 2 }}
{{ end }}