From 8f0c90492859e1331cb9b4fbe85497ce5eb22061 Mon Sep 17 00:00:00 2001 From: Sandesh Koirala Date: Mon, 16 Feb 2026 02:09:11 -0600 Subject: [PATCH] feat(helm): use an existing PVC as config volume (#2447) --- charts/seerr-chart/Chart.yaml | 2 +- charts/seerr-chart/README.md | 5 +++-- charts/seerr-chart/templates/persistentvolumeclaim.yaml | 2 ++ charts/seerr-chart/templates/statefulset.yaml | 2 +- charts/seerr-chart/values.yaml | 2 ++ 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/charts/seerr-chart/Chart.yaml b/charts/seerr-chart/Chart.yaml index 79f3aea7..23635889 100644 --- a/charts/seerr-chart/Chart.yaml +++ b/charts/seerr-chart/Chart.yaml @@ -3,7 +3,7 @@ kubeVersion: '>=1.23.0-0' name: seerr-chart description: Seerr helm chart for Kubernetes type: application -version: 3.0.2 +version: 3.1.0 # renovate: image=ghcr.io/seerr-team/seerr appVersion: 'v3.0.1' maintainers: diff --git a/charts/seerr-chart/README.md b/charts/seerr-chart/README.md index 7bfeacaa..49e965e8 100644 --- a/charts/seerr-chart/README.md +++ b/charts/seerr-chart/README.md @@ -1,6 +1,6 @@ # seerr-chart -![Version: 3.0.2](https://img.shields.io/badge/Version-3.0.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v3.0.1](https://img.shields.io/badge/AppVersion-v3.0.1-informational?style=flat-square) +![Version: 3.1.0](https://img.shields.io/badge/Version-3.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v3.0.1](https://img.shields.io/badge/AppVersion-v3.0.1-informational?style=flat-square) Seerr helm chart for Kubernetes @@ -44,9 +44,10 @@ If `replicaCount` value was used - remove it. Helm update should work fine after | Key | Type | Default | Description | |-----|------|---------|-------------| | affinity | object | `{}` | | -| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"name":"","size":"5Gi","volumeName":""}}` | Creating PVC to store configuration | +| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"existingClaim":"","name":"","size":"5Gi","volumeName":""}}` | Creating PVC to store configuration | | config.persistence.accessModes | list | `["ReadWriteOnce"]` | Access modes of persistent disk | | config.persistence.annotations | object | `{}` | Annotations for PVCs | +| config.persistence.existingClaim | string | `""` | Specify an existing `PersistentVolumeClaim` to use. If this value is provided, the default PVC will not be created | | config.persistence.name | string | `""` | Config name | | config.persistence.size | string | `"5Gi"` | Size of persistent disk | | config.persistence.volumeName | string | `""` | Name of the permanent volume to reference in the claim. Can be used to bind to existing volumes. | diff --git a/charts/seerr-chart/templates/persistentvolumeclaim.yaml b/charts/seerr-chart/templates/persistentvolumeclaim.yaml index 530419d8..1f95bc2b 100644 --- a/charts/seerr-chart/templates/persistentvolumeclaim.yaml +++ b/charts/seerr-chart/templates/persistentvolumeclaim.yaml @@ -1,3 +1,4 @@ +{{- if not .Values.config.persistence.existingClaim -}} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -22,3 +23,4 @@ spec: resources: requests: storage: "{{ .Values.config.persistence.size }}" +{{- end -}} \ No newline at end of file diff --git a/charts/seerr-chart/templates/statefulset.yaml b/charts/seerr-chart/templates/statefulset.yaml index d088553a..ad45170e 100644 --- a/charts/seerr-chart/templates/statefulset.yaml +++ b/charts/seerr-chart/templates/statefulset.yaml @@ -103,7 +103,7 @@ spec: volumes: - name: config persistentVolumeClaim: - claimName: {{ include "seerr.configPersistenceName" . }} + claimName: {{ if .Values.config.persistence.existingClaim }}{{ .Values.config.persistence.existingClaim }}{{- else }}{{ include "seerr.configPersistenceName" . }}{{- end }} {{- with .Values.volumes }} {{- toYaml . | nindent 8 }} {{- end }} diff --git a/charts/seerr-chart/values.yaml b/charts/seerr-chart/values.yaml index a4f48008..6da7cf45 100644 --- a/charts/seerr-chart/values.yaml +++ b/charts/seerr-chart/values.yaml @@ -86,6 +86,8 @@ config: # -- Name of the permanent volume to reference in the claim. # Can be used to bind to existing volumes. volumeName: '' + # -- Specify an existing `PersistentVolumeClaim` to use. If this value is provided, the default PVC will not be created + existingClaim: '' ingress: enabled: false