{{- if and (not .Values.minio.persistence.existingClaim ) .Values.minio.persistence.enabled }} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: minio-data labels: tier: aihub-dag component: minio-pvc release: {{ .Release.Name }} annotations: {{- if .Values.minio.persistence.annotations}} {{- toYaml .Values.minio.persistence.annotations | nindent 4 }} {{- end }} spec: accessModes: [{{ .Values.minio.persistence.accessMode | quote }}] resources: requests: storage: {{ .Values.minio.persistence.size | quote }} {{- if .Values.minio.persistence.storageClassName }} {{- if (eq "-" .Values.minio.persistence.storageClassName) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.minio.persistence.storageClassName }}" {{- end }} {{- end }} {{- end }}