A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
add pvc dataSource
James Roller, Jr.016abd1a9825
diff --git a/charts/templates/pvc.yaml b/charts/templates/pvc.yamlindex 5dfab8fc..640fb9fe 100644--- a/charts/templates/pvc.yaml+++ b/charts/templates/pvc.yaml@@ -20,7 +20,7 @@ kind: PersistentVolumeClaimapiVersion: v1metadata:name: {{ include "answer.fullname" . }}-claim- {{- with .Values.persistence.annotations }}+ {{- with .Values.persistence.annotations }}annotations:{{ toYaml . | indent 4 }}{{- end }}@@ -39,4 +39,10 @@ spec:resources:requests:storage: {{ .Values.persistence.size | quote }}+ {{- with .Values.persistence.dataSource }}+ dataSource:+ name: {{ .name }}+ kind: {{ .kind | default "VolumeSnapshot" }}+ apiGroup: {{ .apiGroup | default "snapshot.storage.k8s.io" }}+ {{- end }}{{- end }}\ No newline at end of filediff --git a/charts/values.yaml b/charts/values.yamlindex 8bb36c46..d932db84 100644--- a/charts/values.yaml+++ b/charts/values.yaml@@ -68,7 +68,7 @@ env:# Configure extra containersextraContainers: []- # - name: cloudsql-proxy+ # - name: cloudsql-proxy# image: gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.1.2# command:# - /cloud-sql-proxy@@ -91,6 +91,12 @@ persistence:accessMode: ReadWriteOncesize: 5Giannotations: {}+ # To restore a PVC from a VolumeSnapshot, set the dataSource;+ # the kind and apiGroup are optional and default to the shown values+ dataSource: {}+ # name: my-volume-snapshot+ # kind: VolumeSnapshot+ # apiGroup: snapshot.storage.k8s.ioimagePullSecrets: []nameOverride: ""