mirror of
https://github.com/bitnami/charts.git
synced 2026-03-07 08:07:55 +08:00
* [bitnami/postgresql-ha] Chart standarization Signed-off-by: FraPazGal <fdepaz@vmware.com> * Update resources names Signed-off-by: FraPazGal <fdepaz@vmware.com> * Remove obsolete comments Signed-off-by: FraPazGal <fdepaz@vmware.com> * Quote namespaces and fix port typo in serviceMonitor Signed-off-by: FraPazGal <fdepaz@vmware.com> * Bump PSQL major Signed-off-by: FraPazGal <fdepaz@vmware.com> * Regenerate README Signed-off-by: FraPazGal <fdepaz@vmware.com> * Revert updateStrategy changes Signed-off-by: FraPazGal <fdepaz@vmware.com> * Add upgrade notes Signed-off-by: FraPazGal <fdepaz@vmware.com> * Modify nodePort params and fix typo Signed-off-by: FraPazGal <fdepaz@vmware.com> * Apply suggested changes Signed-off-by: FraPazGal <fdepaz@vmware.com> * [bitnami/postgresql-ha] Update components versions Signed-off-by: Bitnami Containers <containers@bitnami.com> Co-authored-by: Bitnami Containers <containers@bitnami.com>
29 lines
1.4 KiB
YAML
29 lines
1.4 KiB
YAML
{{- if and (or .Values.postgresql.repmgrConfiguration .Values.postgresql.configuration .Values.postgresql.pgHbaConfiguration) (not .Values.postgresql.configurationCM) }}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ printf "%s-configuration" (include "postgresql-ha.postgresql" .) }}
|
|
namespace: {{ include "common.names.namespace" . | quote }}
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
app.kubernetes.io/component: postgresql
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.commonAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
data:
|
|
{{- if .Values.postgresql.repmgrConfiguration }}
|
|
repmgr.conf: |-
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.postgresql.repmgrConfiguration "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.postgresql.configuration }}
|
|
postgresql.conf: |-
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.postgresql.configuration "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.postgresql.pgHbaConfiguration }}
|
|
pg_hba.conf: |-
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.postgresql.pgHbaConfiguration "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|