Only set storageClassName if it has a value.
Showing
2 changed files
with
4 additions
and
0 deletions
... | @@ -4,7 +4,9 @@ kind: PersistentVolumeClaim | ... | @@ -4,7 +4,9 @@ kind: PersistentVolumeClaim |
4 | metadata: | 4 | metadata: |
5 | name: {{ include "postgresql-rclone.fullname" . }}-backups | 5 | name: {{ include "postgresql-rclone.fullname" . }}-backups |
6 | spec: | 6 | spec: |
7 | {{- if .Values.backup.pvc.storageClassName }} | ||
7 | storageClassName: {{ .Values.backup.pvc.storageClassName }} | 8 | storageClassName: {{ .Values.backup.pvc.storageClassName }} |
9 | {{- end }} | ||
8 | accessModes: | 10 | accessModes: |
9 | - ReadWriteOnce | 11 | - ReadWriteOnce |
10 | resources: | 12 | resources: | ... | ... |
... | @@ -4,7 +4,9 @@ kind: PersistentVolumeClaim | ... | @@ -4,7 +4,9 @@ kind: PersistentVolumeClaim |
4 | metadata: | 4 | metadata: |
5 | name: {{ include "postgresql-rclone.fullname" . }}-restores | 5 | name: {{ include "postgresql-rclone.fullname" . }}-restores |
6 | spec: | 6 | spec: |
7 | {{- if .Values.backup.pvc.storageClassName }} | ||
7 | storageClassName: {{ .Values.restore.pvc.storageClassName }} | 8 | storageClassName: {{ .Values.restore.pvc.storageClassName }} |
9 | {{- end }} | ||
8 | accessModes: | 10 | accessModes: |
9 | - ReadWriteOnce | 11 | - ReadWriteOnce |
10 | resources: | 12 | resources: | ... | ... |
-
Please register or sign in to post a comment