mirror of
https://github.com/bitnami/charts.git
synced 2026-02-22 22:07:26 +08:00
* Update configmap.yaml * Update extended-config-configmap.yaml * Update initialization-configmap.yaml * Update metrics-configmap.yaml * Update metrics-svc.yaml * Update networkpolicy.yaml * Update podsecuritypolicy.yaml * Update role.yaml * Update rolebinding.yaml * Update secrets.yaml * Update serviceaccount.yaml * Update statefulset-readreplicas.yaml * Update statefulset.yaml * Update svc-headless.yaml * Update svc-read.yaml * Update svc.yaml * Update chart version
26 lines
917 B
YAML
26 lines
917 B
YAML
{{- if and (or (.Files.Glob "files/docker-entrypoint-initdb.d/*.{sh,sql,sql.gz}") .Values.initdbScripts) (not .Values.initdbScriptsConfigMap) }}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ template "common.names.fullname" . }}-init-scripts
|
|
labels:
|
|
{{- include "common.labels.standard" . | nindent 4 }}
|
|
{{- if .Values.commonAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- with .Files.Glob "files/docker-entrypoint-initdb.d/*.sql.gz" }}
|
|
binaryData:
|
|
{{- range $path, $bytes := . }}
|
|
{{ base $path }}: {{ $.Files.Get $path | b64enc | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
data:
|
|
{{- with .Files.Glob "files/docker-entrypoint-initdb.d/*.{sh,sql}" }}
|
|
{{ .AsConfig | indent 2 }}
|
|
{{- end }}
|
|
{{- with .Values.initdbScripts }}
|
|
{{ toYaml . | indent 2 }}
|
|
{{- end }}
|
|
{{- end }}
|