File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ kind: PersistentVolumeClaim
20
20
apiVersion : v1
21
21
metadata :
22
22
name : {{ include "answer.fullname" . }}-claim
23
- {{- with .Values.persistence.annotations }}
23
+ {{- with .Values.persistence.annotations }}
24
24
annotations :
25
25
{{ toYaml . | indent 4 }}
26
26
{{- end }}
39
39
resources :
40
40
requests :
41
41
storage : {{ .Values.persistence.size | quote }}
42
+ {{- with .Values.persistence.dataSource }}
43
+ dataSource :
44
+ name : {{ .name }}
45
+ kind : {{ .kind | default "VolumeSnapshot" }}
46
+ apiGroup : {{ .apiGroup | default "snapshot.storage.k8s.io" }}
47
+ {{- end }}
42
48
{{- end }}
Original file line number Diff line number Diff line change 68
68
69
69
# Configure extra containers
70
70
extraContainers : []
71
- # - name: cloudsql-proxy
71
+ # - name: cloudsql-proxy
72
72
# image: gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.1.2
73
73
# command:
74
74
# - /cloud-sql-proxy
@@ -91,6 +91,12 @@ persistence:
91
91
accessMode : ReadWriteOnce
92
92
size : 5Gi
93
93
annotations : {}
94
+ # To restore a PVC from a VolumeSnapshot, set the dataSource;
95
+ # the kind and apiGroup are optional and default to the shown values
96
+ dataSource : {}
97
+ # name: my-volume-snapshot
98
+ # kind: VolumeSnapshot
99
+ # apiGroup: snapshot.storage.k8s.io
94
100
95
101
imagePullSecrets : []
96
102
nameOverride : " "
You can’t perform that action at this time.
0 commit comments