initialization-configmap.yaml 755 B

1234567891011121314151617
  1. {{- /*
  2. Copyright VMware, Inc.
  3. SPDX-License-Identifier: APACHE-2.0
  4. */}}
  5. {{- if and .Values.primary.initdb.scripts (not .Values.primary.initdb.scriptsConfigMap) }}
  6. apiVersion: v1
  7. kind: ConfigMap
  8. metadata:
  9. name: {{ printf "%s-init-scripts" (include "postgresql.v1.primary.fullname" .) }}
  10. namespace: {{ .Release.Namespace | quote }}
  11. labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
  12. {{- if .Values.commonAnnotations }}
  13. annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
  14. {{- end }}
  15. data: {{- include "common.tplvalues.render" (dict "value" .Values.primary.initdb.scripts "context" .) | nindent 2 }}
  16. {{- end }}