Files
charts/bitnami/postgresql/templates/initialization-configmap.yaml
hanzala1234 fc694c5095 [bitnami/Postgresql] Add explicit namespace field on resources (#5333)
* 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
2021-01-29 15:37:28 +01:00

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 }}