Phase 3b: PVC dataSource + storageClassName plumbing (#347)
This commit is contained in:
@@ -64,6 +64,18 @@ spec:
|
||||
name: pgdata
|
||||
spec:
|
||||
accessModes: [ReadWriteOnce]
|
||||
{{- if .Values.instance.storageClassName }}
|
||||
storageClassName: {{ .Values.instance.storageClassName | quote }}
|
||||
{{- end }}
|
||||
{{- if and .Values.instance.dataSource .Values.instance.dataSource.database .Values.instance.dataSource.database.snapshotName }}
|
||||
# Seed from VolumeSnapshot — Tower's VolumeClone path
|
||||
# (ADR 0003 phase 3+4). The snapshot is taken from the
|
||||
# source instance's `pgdata-<source>-pg-0` PVC.
|
||||
dataSource:
|
||||
apiGroup: snapshot.storage.k8s.io
|
||||
kind: VolumeSnapshot
|
||||
name: {{ .Values.instance.dataSource.database.snapshotName | quote }}
|
||||
{{- end }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ include "instance.storage" (dict "Values" .Values "layer" "database") | quote }}
|
||||
|
||||
Reference in New Issue
Block a user