Skip to content

Commit

Permalink
use storageclassname
Browse files Browse the repository at this point in the history
  • Loading branch information
kriegalex committed Aug 1, 2024
1 parent 3aeb380 commit 957dd60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/sonarr/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
11 changes: 5 additions & 6 deletions charts/sonarr/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 957dd60

Please sign in to comment.