Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions charts/cluster/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,9 @@ spec:
{{- end }}
{{ include "cluster.bootstrap" . | nindent 2 }}
{{ include "cluster.backup" . | nindent 2 }}
{{- with .Values.cluster.projectedVolumeTemplate.sources }}
projectedVolumeTemplate:
sources:
{{- . | toYaml | nindent 6 -}}
{{ end }}

Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,11 @@ spec:
metadata:
annotations:
my-annotation: my-service-account
projectedVolumeTemplate:
sources:
- secret:
items:
- key: ca.crt
path: crt/ca-01.pem
name: ca-secret

Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,12 @@ cluster:
annotations:
my-annotation: my-service-account

projectedVolumeTemplate:
sources:
- secret:
name: ca-secret
items:
- key: ca.crt
path: crt/ca-01.pem
backups:
enabled: false
3 changes: 3 additions & 0 deletions charts/cluster/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@
"priorityClassName": {
"type": "string"
},
"projectedVolumeTemplate": {
"type": "object"
},
"resources": {
"type": "object"
},
Expand Down
11 changes: 11 additions & 0 deletions charts/cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,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