2024-02-19 22:18:06 +00:00
|
|
|
{{- if and .Values.webui.persistence.enabled (not .Values.webui.persistence.existingClaim) }}
|
2023-12-28 15:28:09 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
metadata:
|
2024-02-19 20:58:25 +00:00
|
|
|
name: {{ include "open-webui.name" . }}
|
2023-12-28 15:28:09 +00:00
|
|
|
labels:
|
2024-02-19 21:33:22 +00:00
|
|
|
{{- include "open-webui.selectorLabels" . | nindent 4 }}
|
2024-02-19 22:18:06 +00:00
|
|
|
{{- with .Values.webui.persistence.annotations }}
|
|
|
|
annotations:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
2023-12-28 15:28:09 +00:00
|
|
|
spec:
|
2024-02-19 22:18:06 +00:00
|
|
|
accessModes:
|
|
|
|
{{- range .Values.webui.persistence.accessModes }}
|
|
|
|
- {{ . | quote }}
|
|
|
|
{{- end }}
|
2023-12-28 15:28:09 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
2024-02-19 21:33:22 +00:00
|
|
|
storage: {{ .Values.webui.persistence.size }}
|
2024-04-09 05:02:45 +00:00
|
|
|
{{- if .Values.webui.persistence.storageClass }}
|
2024-03-28 00:35:21 +00:00
|
|
|
storageClassName: {{ .Values.webui.persistence.storageClass }}
|
2024-04-09 05:02:45 +00:00
|
|
|
{{- end }}
|
2024-02-19 22:18:06 +00:00
|
|
|
{{- with .Values.webui.persistence.selector }}
|
|
|
|
selector:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|