[bitnami/mongodb-sharded] Delete initScripts from mongos deployment (#4458)

Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com>
This commit is contained in:
Miguel Ángel Cabrera Miñagorri
2020-11-24 10:36:44 +01:00
committed by GitHub
parent 895cae97d5
commit be58a83cdc
2 changed files with 1 additions and 29 deletions
+1 -1
View File
@@ -20,4 +20,4 @@ name: mongodb-sharded
sources:
- https://github.com/bitnami/bitnami-docker-mongodb-sharded
- https://mongodb.org
version: 3.0.3
version: 3.0.4
@@ -181,26 +181,10 @@ spec:
- name: secrets
mountPath: /bitnami/mongodb/secrets/
{{- end }}
{{- if .Values.mongos.initScriptsCM }}
- name: custom-init-scripts
mountPath: /docker-entrypoint-initdb.d/configmap
{{- end }}
{{- if .Values.mongos.initScriptsSecret }}
- name: custom-init-scripts-secrets
mountPath: /docker-entrypoint-initdb.d/secret
{{- end }}
{{- if or .Values.mongos.config .Values.mongos.configCM }}
- name: config
mountPath: /bitnami/mongodb/conf/
{{- end }}
{{- if $.Values.common.initScriptsCM }}
- name: custom-init-scripts-cm
mountPath: /docker-entrypoint-initdb.d/cm
{{- end }}
{{- if $.Values.common.initScriptsSecret }}
- name: custom-init-scripts-secret
mountPath: /docker-entrypoint-initdb.d/secret
{{- end }}
{{- if $.Values.common.extraVolumeMounts }}
{{- include "mongodb-sharded.tplValue" ( dict "value" $.Values.common.extraVolumeMounts "context" $ ) | nindent 12 }}
{{- end }}
@@ -286,18 +270,6 @@ spec:
configMap:
name: {{ include "mongodb-sharded.mongos.configCM" . }}
{{- end }}
{{- if $.Values.common.initScriptsCM }}
- name: custom-init-scripts-cm
configMap:
name: {{ include "mongodb-sharded.initScriptsCM" . }}
defaultMode: 0755
{{- end }}
{{- if $.Values.common.initScriptsSecret }}
- name: custom-init-scripts-secret
secret:
name: {{ include "mongodb-sharded.initScriptsSecret" . }}
defaultMode: 0755
{{- end }}
{{- if $.Values.common.extraVolumes }}
{{- include "mongodb-sharded.tplValue" ( dict "value" $.Values.common.extraVolumes "context" $ ) | nindent 8 }}
{{- end }}