From 017c1dd1c90aa201c9efe62961ffce952b0d0f99 Mon Sep 17 00:00:00 2001 From: Marc Hermans Date: Thu, 14 Nov 2024 11:53:40 +0100 Subject: [PATCH] Add support for labels on the PVC --- chart/webdav/templates/pvc.yaml | 3 +++ chart/webdav/values.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/chart/webdav/templates/pvc.yaml b/chart/webdav/templates/pvc.yaml index 62ebbf7..b8d163b 100644 --- a/chart/webdav/templates/pvc.yaml +++ b/chart/webdav/templates/pvc.yaml @@ -4,6 +4,9 @@ metadata: name: {{ include "nginxwebdav.fullname" . }}-{{ .Values.persistence.name }} annotations: {{- toYaml .Values.persistence.annotations | nindent 4 }} + labels: + {{- include "nginxwebdav" . | nindent 4 }} + {{- .Values.persistence.labels | nindent 4 }} spec: accessModes: - ReadWriteOnce diff --git a/chart/webdav/values.yaml b/chart/webdav/values.yaml index 82a74a9..eddbff1 100644 --- a/chart/webdav/values.yaml +++ b/chart/webdav/values.yaml @@ -29,6 +29,7 @@ persistence: name: "webdav" mountPath: "/media/data" annotations: {} + labels: {} size: "1Gi" storageClass: "default" additionalVolumes: []