Allow setting custom labels and annotations on PVCs

This commit is contained in:
Jack Henschel committed 2024-10-08 10:02:28 +02:00
1 parent 38e6100c8c
commit 581735dc61
3 files changed
+23

No files matched your search

@@ -9,6 +9,13 @@ metadata:
helm.sh/chart: {{ include "jellyfin.chart" . }} helm.sh/chart: {{ include "jellyfin.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- with .Values.persistence.config.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.persistence.config.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec: spec:
accessModes: accessModes:
- {{ .Values.persistence.config.accessMode | quote }} - {{ .Values.persistence.config.accessMode | quote }}
+7
View File
@@ -9,6 +9,13 @@ metadata:
helm.sh/chart: {{ include "jellyfin.chart" . }} helm.sh/chart: {{ include "jellyfin.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- with .Values.persistence.media.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.persistence.media.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec: spec:
accessModes: accessModes:
- {{ .Values.persistence.media.accessMode | quote }} - {{ .Values.persistence.media.accessMode | quote }}
+9
View File
@@ -62,6 +62,10 @@ persistence:
# subPath: some-subpath # subPath: some-subpath
accessMode: ReadWriteOnce accessMode: ReadWriteOnce
size: 1Gi size: 1Gi
# -- Custom labels to be added to the PVC
labels: {}
# -- Custom annotations to be added to the PVC
annotations: {}
media: media:
enabled: false enabled: false
# -- If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner. # -- If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner.
@@ -72,6 +76,11 @@ persistence:
# subPath: some-subpath # subPath: some-subpath
accessMode: ReadWriteOnce accessMode: ReadWriteOnce
size: 10Gi size: 10Gi
# -- Custom labels to be added to the PVC
labels: {}
# -- Custom annotations to be added to the PVC
annotations: {}
# -- Add aditional PVs/PVCs to our container. Check values.yaml to see an example. # -- Add aditional PVs/PVCs to our container. Check values.yaml to see an example.
extraExistingClaimMounts: [] extraExistingClaimMounts: []
# - name: external-mount # - name: external-mount