Phase 3b: PVC dataSource + storageClassName plumbing (#347)

This commit is contained in:
OdooSky Bot
2026-05-02 22:06:03 +03:00
parent 51b6735abc
commit f3ab459459
2 changed files with 31 additions and 0 deletions

View File

@@ -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 }}