Skip to content

Commit

Permalink
Merge pull request #235 from percona/k8spg-416-hba
Browse files Browse the repository at this point in the history
K8SPG-416 add hba custom config
  • Loading branch information
spron-in authored Aug 8, 2023
2 parents 9389c80 + 7e6c787 commit e4d6a83
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion charts/pg-db/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: pg-db
description: 'A Helm chart to deploy the PostgreSQL database with the Percona Operator for PostgreSQL'
type: application
version: 2.2.3
version: 2.2.4
appVersion: 2.2.0
home: https://docs.percona.com/percona-operator-for-postgresql/2.0/
maintainers:
Expand Down
21 changes: 11 additions & 10 deletions charts/pg-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,14 @@ spec:
{{- end }}


{{- if .Values.patroni}}
patroni:
dynamicConfiguration:
postgresql:
parameters:
max_parallel_workers: {{ .Values.patroni.dynamicConfiguration.postgresql.parameters.max_parallel_workers }}
max_worker_processes: {{ .Values.patroni.dynamicConfiguration.postgresql.parameters.max_worker_processes }}
shared_buffers: {{ .Values.patroni.dynamicConfiguration.postgresql.parameters.shared_buffers }}
work_mem: {{ .Values.patroni.dynamicConfiguration.postgresql.parameters.work_mem }}
{{- end }}
{{- if .Values.patroni }}
patroni:
dynamicConfiguration:
postgresql:
parameters:
{{- .Values.patroni.dynamicConfiguration.postgresql.parameters | toYaml | nindent 10 }}
pg_hba:
{{- range $pg_hba_entry := .Values.patroni.dynamicConfiguration.postgresql.pg_hba }}
- {{ $pg_hba_entry }}
{{- end }}
{{- end }}

0 comments on commit e4d6a83

Please sign in to comment.