{{- if .Values.fileserver.enabled }} {{- if .Values.fileserver.storage.enabled }} {{- if not .Values.fileserver.storage.data.existingPVC }} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ include "fileserver.referenceName" . }}-data labels: {{- include "clearml.labels" . | nindent 4 }} spec: accessModes: - {{ .Values.fileserver.storage.data.accessMode }} resources: requests: storage: {{ .Values.fileserver.storage.data.size | quote }} {{- if .Values.fileserver.storage.data.class }} storageClassName: {{ .Values.fileserver.storage.data.class | quote }} {{- end -}} {{- end }} {{- end }} {{- end }}