Skip to content

Commit 54db254

Browse files
plesoun-steinpha91
authored andcommitted
cluster: add projected volume support
Signed-off-by: Tomas Steiner <[email protected]>
1 parent 8ba8bee commit 54db254

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

charts/cluster/templates/cluster.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,9 @@ spec:
135135
{{- end }}
136136
{{ include "cluster.bootstrap" . | nindent 2 }}
137137
{{ include "cluster.backup" . | nindent 2 }}
138+
{{- with .Values.cluster.projectedVolumeTemplate.sources }}
139+
projectedVolumeTemplate:
140+
sources:
141+
{{- . | toYaml | nindent 8 -}}
142+
{{ end }}
143+

charts/cluster/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,17 @@ cluster:
368368
additionalLabels: {}
369369
annotations: {}
370370

371+
# -- mounting custom files inside the Postgres pods through .spec.projectedVolumeTemplate
372+
# See https://cloudnative-pg.io/documentation/current/cluster_conf/#projected-volumes
373+
projectedVolumeTemplate: {}
374+
# sources:
375+
# - secret:
376+
# name: sample-secret
377+
# items:
378+
# - key: tls.crt
379+
# path: certificate/tls.crt
380+
# - key: tls.key
381+
# path: certificate/tls.key
371382

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

0 commit comments

Comments
 (0)