diff --git a/radarr/Chart.yaml b/radarr/Chart.yaml index 4f6c37fb..72a4b67f 100644 --- a/radarr/Chart.yaml +++ b/radarr/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v1 -appVersion: amd64-0.2.0.1318-ls6 +appVersion: amd64-v0.2.0.1293-ls9 description: Radarr is a movie downloading client name: radarr -version: 1.1.1 +version: 2.0.2 keywords: - radarr - usenet diff --git a/radarr/README.md b/radarr/README.md index e334cf96..2a66735e 100644 --- a/radarr/README.md +++ b/radarr/README.md @@ -34,8 +34,9 @@ The following tables lists the configurable parameters of the Sentry chart and t | Parameter | Description | Default | |----------------------------|-------------------------------------|---------------------------------------------------------| | `image.repository` | Image repository | `linuxserver/radarr` | -| `image.tag` | Image tag. Possible values listed [here](https://hub.docker.com/r/linuxserver/radarr/tags/).| `137`| +| `image.tag` | Image tag. Possible values listed [here](https://hub.docker.com/r/linuxserver/radarr/tags/).| `amd64-v0.2.0.1293-ls9`| | `image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `strategyType` | Specifies the strategy used to replace old Pods by new ones | `Recreate` | | `timezone` | Timezone the radarr instance should run as, e.g. 'America/New_York' | `UTC` | | `puid` | process userID the radarr instance should run as | `1001` | | `pgid` | process groupID the radarr instance should run as | `1001` | diff --git a/radarr/templates/config-pvc.yaml b/radarr/templates/config-pvc.yaml new file mode 100644 index 00000000..70f6a9ed --- /dev/null +++ b/radarr/templates/config-pvc.yaml @@ -0,0 +1,25 @@ + +{{- if and .Values.persistence.config.enabled (not .Values.persistence.config.existingClaim) }} +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: {{ template "radarr.fullname" . }}-config + labels: + app.kubernetes.io/name: {{ include "radarr.name" . }} + helm.sh/chart: {{ include "radarr.chart" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/managed-by: {{ .Release.Service }} +spec: + accessModes: + - {{ .Values.persistence.config.accessMode | quote }} + resources: + requests: + storage: {{ .Values.persistence.config.size | quote }} +{{- if .Values.persistence.config.storageClass }} +{{- if (eq "-" .Values.persistence.config.storageClass) }} + storageClassName: "" +{{- else }} + storageClassName: "{{ .Values.persistence.config.storageClass }}" +{{- end }} +{{- end }} +{{- end -}} \ No newline at end of file diff --git a/radarr/templates/statefulset.yaml b/radarr/templates/deployment.yaml similarity index 75% rename from radarr/templates/statefulset.yaml rename to radarr/templates/deployment.yaml index 2a6afaa1..3cc767dc 100644 --- a/radarr/templates/statefulset.yaml +++ b/radarr/templates/deployment.yaml @@ -1,5 +1,5 @@ apiVersion: apps/v1 -kind: StatefulSet +kind: Deployment metadata: name: {{ include "radarr.fullname" . }} labels: @@ -8,8 +8,9 @@ metadata: app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} spec: - podManagementPolicy: "Parallel" - replicas: {{ .Values.replicaCount }} + replicas: 1 + strategy: + type: {{ .Values.strategyType }} selector: matchLabels: app.kubernetes.io/name: {{ include "radarr.name" . }} @@ -62,6 +63,13 @@ spec: resources: {{ toYaml .Values.resources | indent 12 }} volumes: + - name: config + {{- if .Values.persistence.config.enabled }} + persistentVolumeClaim: + claimName: {{ if .Values.persistence.config.existingClaim }}{{ .Values.persistence.config.existingClaim }}{{- else }}{{ template "radarr.fullname" . }}-config{{- end }} + {{- else }} + emptyDir: {} + {{- end }} - name: downloads {{- if .Values.persistence.downloads.enabled }} persistentVolumeClaim: @@ -81,38 +89,6 @@ spec: persistentVolumeClaim: claimName: {{ .existingClaim }} {{- end }} -{{- if and .Values.persistence.config.enabled .Values.persistence.config.existingClaim }} - - name: config - {{- if .Values.persistence.config.enabled }} - persistentVolumeClaim: - claimName: {{ .Values.persistence.config.existingClaim }} - {{- else }} - emptyDir: {} - {{- end }} -{{- else if not .Values.persistence.config.enabled }} - - name: config - emptyDir: {} -{{- else if and .Values.persistence.config.enabled (not .Values.persistence.config.existingClaim) }} - volumeClaimTemplates: - - metadata: - name: config - labels: - app.kubernetes.io/name: {{ include "radarr.name" . }} - app.kubernetes.io/instance: {{ .Release.Name }} - spec: - accessModes: - - {{ .Values.persistence.config.accessMode | quote }} - resources: - requests: - storage: {{ .Values.persistence.config.size | quote }} - {{- if .Values.persistence.config.storageClass }} - {{- if (eq "-" .Values.persistence.config.storageClass) }} - storageClassName: "" - {{- else }} - storageClassName: "{{ .Values.persistence.config.storageClass }}" - {{- end }} - {{- end }} -{{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} diff --git a/radarr/values.yaml b/radarr/values.yaml index 9096cd38..2f1cbc97 100644 --- a/radarr/values.yaml +++ b/radarr/values.yaml @@ -2,13 +2,14 @@ # This is a YAML-formatted file. # Declare variables to be passed into your templates. -replicaCount: 1 - image: repository: linuxserver/radarr - tag: amd64-0.2.0.1318-ls6 + tag: amd64-v0.2.0.1293-ls9 pullPolicy: IfNotPresent +# upgrade strategy type (e.g. Recreate or RollingUpdate) +strategyType: Recreate + nameOverride: "" fullnameOverride: ""