Skip to content

Commit

Permalink
cluster: add projected volume support
Browse files Browse the repository at this point in the history
  • Loading branch information
plesoun-stein committed Feb 3, 2025
1 parent b7fe14f commit f907cae
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/cluster/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,9 @@ spec:
{{- end }}
{{ include "cluster.bootstrap" . | nindent 2 }}
{{ include "cluster.backup" . | nindent 2 }}
{{- with .Values.cluster.projectedVolumeTemplate.sources }}
projectedVolumeTemplate:
sources:
{{- . | toYaml | nindent 8 -}}
{{ end }}

11 changes: 11 additions & 0 deletions charts/cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,17 @@ cluster:
additionalLabels: {}
annotations: {}

# -- mounting custom files inside the Postgres pods through .spec.projectedVolumeTemplate
# See https://cloudnative-pg.io/documentation/current/cluster_conf/#projected-volumes
projectedVolumeTemplate: {}
# sources:
# - secret:
# name: sample-secret
# items:
# - key: tls.crt
# path: certificate/tls.crt
# - key: tls.key
# path: certificate/tls.key

backups:
# -- You need to configure backups manually, so backups are disabled by default.
Expand Down

0 comments on commit f907cae

Please sign in to comment.