charts/audiobookshelf/templates/pvc.yaml aktualisiert
This commit is contained in:
parent
83454f2b7d
commit
e653759d57
@ -50,54 +50,28 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
---
|
---
|
||||||
{{- if and .Values.persistence.audiobooks.enabled (not .Values.persistence.audiobooks.existingClaim) }}
|
{{- if and .Values.persistence.media.enabled (not .Values.persistence.media.existingClaim) }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "audiobookshelf.fullname" . }}-audiobooks
|
name: {{ include "audiobookshelf.fullname" . }}-media
|
||||||
labels:
|
labels:
|
||||||
{{- include "audiobookshelf.labels" . | nindent 4 }}
|
{{- include "audiobookshelf.labels" . | nindent 4 }}
|
||||||
{{- with .Values.persistence.audiobooks.annotations }}
|
{{- with .Values.persistence.media.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{ toYaml . | indent 4 }}
|
{{ toYaml . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- {{ .Values.persistence.audiobooks.accessMode | quote }}
|
- {{ .Values.persistence.media.accessMode | quote }}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.persistence.audiobooks.size }}
|
storage: {{ .Values.persistence.media.size }}
|
||||||
{{- if .Values.persistence.audiobooks.storageClass }}
|
{{- if .Values.persistence.media.storageClass }}
|
||||||
{{- if (eq "-" .Values.persistence.audiobooks.storageClass) }}
|
{{- if (eq "-" .Values.persistence.media.storageClass) }}
|
||||||
storageClassName: ""
|
storageClassName: ""
|
||||||
{{- else }}
|
{{- else }}
|
||||||
storageClassName: "{{ .Values.persistence.audiobooks.storageClass }}"
|
storageClassName: "{{ .Values.persistence.media.storageClass }}"
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
---
|
|
||||||
{{- if and .Values.persistence.podcasts.enabled (not .Values.persistence.podcasts.existingClaim) }}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: {{ include "audiobookshelf.fullname" . }}-podcasts
|
|
||||||
labels:
|
|
||||||
{{- include "audiobookshelf.labels" . | nindent 4 }}
|
|
||||||
{{- with .Values.persistence.podcasts.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{ toYaml . | indent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- {{ .Values.persistence.podcasts.accessMode | quote }}
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: {{ .Values.persistence.podcasts.size }}
|
|
||||||
{{- if .Values.persistence.podcasts.storageClass }}
|
|
||||||
{{- if (eq "-" .Values.persistence.podcasts.storageClass) }}
|
|
||||||
storageClassName: ""
|
|
||||||
{{- else }}
|
|
||||||
storageClassName: "{{ .Values.persistence.podcasts.storageClass }}"
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
Loading…
Reference in New Issue
Block a user