Skip to content

Commit

Permalink
feat(cluster): added support for enablePDB option (cloudnative-pg#431)
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Bugeia <[email protected]>

Co-authored-by: Itay Grudev <[email protected]>
  • Loading branch information
2 people authored and hapeho committed Dec 18, 2024
1 parent eb05c9a commit 78a21ae
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion charts/cluster/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
walStorage:
size: {{ .Values.cluster.walStorage.size }}
storageClass: {{ .Values.cluster.walStorage.storageClass }}
{{- end }}
{{- end }}
{{- with .Values.cluster.resources }}
resources:
{{- toYaml . | nindent 4 }}
Expand Down Expand Up @@ -56,6 +56,7 @@ spec:
superuserSecret:
name: {{ . }}
{{ end }}
enablePDB: {{ .Values.cluster.enablePDB }}
postgresql:
shared_preload_libraries:
{{- if eq .Values.type "timescaledb" }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ spec:
superuserSecret:
name: supersecret-secret
enableSuperuserAccess: true
enablePDB: false
certificates:
serverCASecret: ca-secret
serverTLSSecret: tls-secret
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ cluster:
clientCASecret: client-ca-secret
enableSuperuserAccess: true
superuserSecret: supersecret-secret
enablePDB: false
roles:
- name: dante
ensure: present
Expand Down
4 changes: 4 additions & 0 deletions charts/cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ cluster:
enableSuperuserAccess: true
superuserSecret: ""

# -- Allow to disable PDB, mainly useful for upgrade of single-instance clusters or development purposes
# See: https://cloudnative-pg.io/documentation/current/kubernetes_upgrade/#pod-disruption-budgets
enablePDB: true

# -- This feature enables declarative management of existing roles, as well as the creation of new roles if they are not
# already present in the database.
# See: https://cloudnative-pg.io/documentation/current/declarative_role_management/
Expand Down

0 comments on commit 78a21ae

Please sign in to comment.