Skip to content

Commit 5a4f70f

Browse files
committed
chore(postgresql-cluster): fix password & netpolicy
1 parent b7494c2 commit 5a4f70f

4 files changed

Lines changed: 5 additions & 2 deletions

File tree

addons/postgresql-cluster/15/chart/postgresql-cluster/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ Get the administrator password ;
189189
{{- if .Values.adminRole.password }}
190190
{{- .Values.adminRole.password -}}
191191
{{- else -}}
192-
{{- include "getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "common.names.fullname" .) "Length" 10 "Key" "password-replication") -}}
192+
{{- include "getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "common.names.fullname" .) "Length" 10 "Key" "admin-password") -}}
193193
{{- end -}}
194194
{{- end }}
195195

addons/postgresql-cluster/15/chart/postgresql-cluster/templates/networkpolicy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ spec:
2121
# Allow inbound connections
2222
- ports:
2323
- port: 5432
24+
- port: 9000
2425
{{- if and .Values.metrics.enabled }}
2526
- port: {{ .Values.metrics.containerPort }}
2627
{{ end }}

addons/postgresql-cluster/15/chart/postgresql-cluster/templates/statefulset.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ spec:
195195
volumeMounts:
196196
- name: storage-volume
197197
mountPath: "{{ .Values.persistentVolume.mountPath }}"
198+
- mountPath: "/opt/drycc/postgresql/backup/"
199+
name: backup-config
198200

199201
{{- with .Values.nodeSelector }}
200202
nodeSelector:

addons/postgresql-cluster/15/chart/postgresql-cluster/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ preInitScript: |
112112
password: '${PATRONI_REPLICATION_PASSWORD}'
113113
rewind: # Has no effect on postgres 10 and lower
114114
username: rewinder
115-
password: '${PATRONI_REWIND_USERNAME}'
115+
password: '${PATRONI_REWIND_PASSWORD}'
116116
watchdog:
117117
mode: off
118118
__EOF__

0 commit comments

Comments
 (0)