diff --git a/charts/cluster/templates/cluster.yaml b/charts/cluster/templates/cluster.yaml index f55d82d40..614da4ef2 100644 --- a/charts/cluster/templates/cluster.yaml +++ b/charts/cluster/templates/cluster.yaml @@ -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 }} + diff --git a/charts/cluster/values.yaml b/charts/cluster/values.yaml index b7eab6726..4f642568c 100644 --- a/charts/cluster/values.yaml +++ b/charts/cluster/values.yaml @@ -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.