ad565db4 by Adam Heath

Only set storageClassName if it has a value.

1 parent 725b76e0
...@@ -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:
......