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