Skip to content

Commit f907cae

Browse files
committed
cluster: add projected volume support
1 parent b7fe14f commit f907cae

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
@@ -131,3 +131,9 @@ spec:
131131
{{- end }}
132132
{{ include "cluster.bootstrap" . | nindent 2 }}
133133
{{ include "cluster.backup" . | nindent 2 }}
134+
{{- with .Values.cluster.projectedVolumeTemplate.sources }}
135+
projectedVolumeTemplate:
136+
sources:
137+
{{- . | toYaml | nindent 8 -}}
138+
{{ end }}
139+

charts/cluster/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,17 @@ cluster:
302302
additionalLabels: {}
303303
annotations: {}
304304

305+
# -- mounting custom files inside the Postgres pods through .spec.projectedVolumeTemplate
306+
# See https://cloudnative-pg.io/documentation/current/cluster_conf/#projected-volumes
307+
projectedVolumeTemplate: {}
308+
# sources:
309+
# - secret:
310+
# name: sample-secret
311+
# items:
312+
# - key: tls.crt
313+
# path: certificate/tls.crt
314+
# - key: tls.key
315+
# path: certificate/tls.key
305316

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

0 commit comments

Comments
 (0)