From 957dd603af3e96340ed37d7b501e5acb84f11e6d Mon Sep 17 00:00:00 2001 From: kriegalex Date: Thu, 1 Aug 2024 14:02:14 +0000 Subject: [PATCH] use storageclassname --- charts/sonarr/Chart.yaml | 2 +- charts/sonarr/templates/pvc.yaml | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/charts/sonarr/Chart.yaml b/charts/sonarr/Chart.yaml index 34ea447..205d81f 100644 --- a/charts/sonarr/Chart.yaml +++ b/charts/sonarr/Chart.yaml @@ -4,7 +4,7 @@ description: A Sonarr Helm chart for Kubernetes type: application -version: 1.5.0 +version: 1.5.1 # renovate: image=hotio/sonarr appVersion: "release-4.0.8.1874" diff --git a/charts/sonarr/templates/pvc.yaml b/charts/sonarr/templates/pvc.yaml index b0faa51..c1155ca 100644 --- a/charts/sonarr/templates/pvc.yaml +++ b/charts/sonarr/templates/pvc.yaml @@ -5,16 +5,15 @@ metadata: name: {{ include "sonarr.fullname" . }} labels: {{- include "sonarr.labels" . | nindent 4 }} - annotations: - {{- if .Values.persistence.storageClass }} - volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.storageClass | quote }} - {{- else }} - volume.alpha.kubernetes.io/storage-class: default - {{- end }} spec: accessModes: - {{ .Values.persistence.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.size | quote }} +{{- if .Values.persistence.storageClass }} + storageClassName: {{ .Values.persistence.storageClass | quote }} +{{- else }} + storageClassName: default +{{- end }} {{- end }}