diff --git a/charts/servarr/Chart.yaml b/charts/servarr/Chart.yaml index 559a460..4803173 100644 --- a/charts/servarr/Chart.yaml +++ b/charts/servarr/Chart.yaml @@ -4,7 +4,7 @@ maintainers: url: https://kubito.dev apiVersion: v2 appVersion: 1.3.0 -version: 1.5.2 +version: 1.5.3 description: Kubito Servarr Helm Chart home: https://github.com/kubitodev/helm/tree/main/charts/servarr icon: https://kubito.dev/images/kubito.svg diff --git a/charts/servarr/README.md b/charts/servarr/README.md index cd56ee2..fd80542 100644 --- a/charts/servarr/README.md +++ b/charts/servarr/README.md @@ -170,6 +170,7 @@ The command removes all the Kubernetes components associated with the chart and | `sonarr.persistence.existingClaim` | The name of an existing claim to use for the persistence. | `""` | | `sonarr.persistence.accessMode` | The access mode to use for the persistence. | `ReadWriteOnce` | | `sonarr.persistence.size` | The size to use for the persistence. | `800Mi` | +| `sonarr.persistence.chownMedia` | Whether to recursively chown Sonarr and qBittorrent media folders in the init container. | `true` | | `sonarr.persistence.additionalVolumes` | Additional volumes to add to the pod. | `[]` | | `sonarr.persistence.additionalMounts` | Additional volume mounts to add to the pod. | `[]` | @@ -496,6 +497,7 @@ The command removes all the Kubernetes components associated with the chart and | `radarr.persistence.existingClaim` | The name of an existing claim to use for the persistence. | `""` | | `radarr.persistence.accessMode` | The access mode to use for the persistence. | `ReadWriteOnce` | | `radarr.persistence.size` | The size to use for the persistence. | `800Mi` | +| `radarr.persistence.chownMedia` | Whether to recursively chown Radarr and qBittorrent media folders in the init container. | `true` | | `radarr.persistence.additionalVolumes` | Additional volumes to add to the pod. | `[]` | | `radarr.persistence.additionalMounts` | Additional volume mounts to add to the pod. | `[]` | @@ -552,6 +554,7 @@ The command removes all the Kubernetes components associated with the chart and | `lidarr.persistence.existingClaim` | The name of an existing claim to use for the persistence. | `""` | | `lidarr.persistence.accessMode` | The access mode to use for the persistence. | `ReadWriteOnce` | | `lidarr.persistence.size` | The size to use for the persistence. | `800Mi` | +| `lidarr.persistence.chownMedia` | Whether to recursively chown Lidarr and qBittorrent media folders in the init container. | `true` | | `lidarr.persistence.additionalVolumes` | Additional volumes to add to the pod. | `[]` | | `lidarr.persistence.additionalMounts` | Additional volume mounts to add to the pod. | `[]` | | `lidarr.lidatube.enabled` | Whether to run the LidaTube sidecar (finds and downloads missing Lidarr albums via yt-dlp). | `false` | diff --git a/charts/servarr/templates/lidarr/deployment.yaml b/charts/servarr/templates/lidarr/deployment.yaml index d8b39fa..cfca2a0 100644 --- a/charts/servarr/templates/lidarr/deployment.yaml +++ b/charts/servarr/templates/lidarr/deployment.yaml @@ -44,7 +44,7 @@ spec: initContainers: - name: init-directories image: busybox - command: ['sh', '-c', 'mkdir -p /media/{{ .Values.lidarr.persistence.path }} /media/{{ .Values.qbittorrent.persistence.path }} && chown -R 1000:1000 /media/{{ .Values.lidarr.persistence.path }} /media/{{ .Values.qbittorrent.persistence.path }}'] + command: ['sh', '-c', 'mkdir -p /media/{{ .Values.lidarr.persistence.path }} /media/{{ .Values.qbittorrent.persistence.path }}{{- if .Values.lidarr.persistence.chownMedia }} && chown -R 1000:1000 /media/{{ .Values.lidarr.persistence.path }} /media/{{ .Values.qbittorrent.persistence.path }}{{- end }}'] volumeMounts: - name: media mountPath: /media diff --git a/charts/servarr/templates/radarr/deployment.yaml b/charts/servarr/templates/radarr/deployment.yaml index 426007b..2392ff4 100644 --- a/charts/servarr/templates/radarr/deployment.yaml +++ b/charts/servarr/templates/radarr/deployment.yaml @@ -44,7 +44,7 @@ spec: initContainers: - name: init-directories image: busybox - command: ['sh', '-c', 'mkdir -p /media/{{ .Values.radarr.persistence.path }} /media/{{ .Values.qbittorrent.persistence.path }} && chown -R 1000:1000 /media/{{ .Values.radarr.persistence.path }} /media/{{ .Values.qbittorrent.persistence.path }}'] + command: ['sh', '-c', 'mkdir -p /media/{{ .Values.radarr.persistence.path }} /media/{{ .Values.qbittorrent.persistence.path }}{{- if .Values.radarr.persistence.chownMedia }} && chown -R 1000:1000 /media/{{ .Values.radarr.persistence.path }} /media/{{ .Values.qbittorrent.persistence.path }}{{- end }}'] volumeMounts: - name: media mountPath: /media diff --git a/charts/servarr/templates/sonarr/deployment.yaml b/charts/servarr/templates/sonarr/deployment.yaml index 500795e..e1acf74 100644 --- a/charts/servarr/templates/sonarr/deployment.yaml +++ b/charts/servarr/templates/sonarr/deployment.yaml @@ -44,7 +44,7 @@ spec: initContainers: - name: init-directories image: busybox - command: ['sh', '-c', 'mkdir -p /media/{{ .Values.sonarr.persistence.path }} /media/{{ .Values.qbittorrent.persistence.path }} && chown -R 1000:1000 /media/{{ .Values.sonarr.persistence.path }} /media/{{ .Values.qbittorrent.persistence.path }}'] + command: ['sh', '-c', 'mkdir -p /media/{{ .Values.sonarr.persistence.path }} /media/{{ .Values.qbittorrent.persistence.path }}{{- if .Values.sonarr.persistence.chownMedia }} && chown -R 1000:1000 /media/{{ .Values.sonarr.persistence.path }} /media/{{ .Values.qbittorrent.persistence.path }}{{- end }}'] volumeMounts: - name: media mountPath: /media diff --git a/charts/servarr/values.yaml b/charts/servarr/values.yaml index 3a63890..400f03b 100644 --- a/charts/servarr/values.yaml +++ b/charts/servarr/values.yaml @@ -267,6 +267,7 @@ jellyfin: ## @param sonarr.persistence.existingClaim The name of an existing claim to use for the persistence. ## @param sonarr.persistence.accessMode The access mode to use for the persistence. ## @param sonarr.persistence.size The size to use for the persistence. +## @param sonarr.persistence.chownMedia Whether to recursively chown Sonarr and qBittorrent media folders in the init container. ## @param sonarr.persistence.additionalVolumes Additional volumes to add to the pod. ## @param sonarr.persistence.additionalMounts Additional volume mounts to add to the pod. ## @@ -382,6 +383,7 @@ sonarr: persistence: enabled: true path: tv + chownMedia: true storageClass: "" existingClaim: "" accessMode: ReadWriteOnce @@ -1236,6 +1238,7 @@ bazarr: ## @param radarr.persistence.existingClaim The name of an existing claim to use for the persistence. ## @param radarr.persistence.accessMode The access mode to use for the persistence. ## @param radarr.persistence.size The size to use for the persistence. +## @param radarr.persistence.chownMedia Whether to recursively chown Radarr and qBittorrent media folders in the init container. ## @param radarr.persistence.additionalVolumes Additional volumes to add to the pod. ## @param radarr.persistence.additionalMounts Additional volume mounts to add to the pod. ## @@ -1350,6 +1353,7 @@ radarr: persistence: enabled: true path: movies + chownMedia: true storageClass: "" existingClaim: "" accessMode: ReadWriteOnce @@ -1408,6 +1412,7 @@ radarr: ## @param lidarr.persistence.existingClaim The name of an existing claim to use for the persistence. ## @param lidarr.persistence.accessMode The access mode to use for the persistence. ## @param lidarr.persistence.size The size to use for the persistence. +## @param lidarr.persistence.chownMedia Whether to recursively chown Lidarr and qBittorrent media folders in the init container. ## @param lidarr.persistence.additionalVolumes Additional volumes to add to the pod. ## @param lidarr.persistence.additionalMounts Additional volume mounts to add to the pod. ## @param lidarr.lidatube.enabled Whether to run the LidaTube sidecar (finds and downloads missing Lidarr albums via yt-dlp). @@ -1532,6 +1537,7 @@ lidarr: persistence: enabled: true path: music + chownMedia: true storageClass: "" existingClaim: "" accessMode: ReadWriteOnce