github.com/argoproj/argo-cd@v1.8.7/util/helm/testdata/helm2-dependency/templates/pvc.yaml (about) 1 {{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }} 2 kind: PersistentVolumeClaim 3 apiVersion: v1 4 metadata: 5 name: {{ template "fullname" . }} 6 labels: 7 app: {{ template "fullname" . }} 8 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 9 release: "{{ .Release.Name }}" 10 heritage: "{{ .Release.Service }}" 11 spec: 12 accessModes: 13 - {{ .Values.persistence.accessMode | quote }} 14 resources: 15 requests: 16 storage: {{ .Values.persistence.size | quote }} 17 {{- if .Values.persistence.storageClass }} 18 {{- if (eq "-" .Values.persistence.storageClass) }} 19 storageClassName: "" 20 {{- else }} 21 storageClassName: "{{ .Values.persistence.storageClass }}" 22 {{- end }} 23 {{- end }} 24 {{- end -}}