# helm_charts_spark-zeppelin-config-pvc.yaml
{{ $persistence := .Values.Zeppelin.Persistence.Config }}
{{- if $persistence.Enabled }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: {{ template "zeppelin-fullname" . }}-config
spec:
  accessModes:
    - {{ $persistence.AccessMode | quote }}
  resources:
    requests:
      storage: {{ $persistence.Size | quote }}
{{- if $persistence.StorageClass }}
{{- if (eq "-" $persistence.StorageClass) }}
  storageClassName: ""
{{- else }}
  storageClassName: "{{ $persistence.StorageClass }}"
{{- end }}
{{- end }}
{{- end }}