diff --git a/charts/bazarr/Chart.yaml b/charts/bazarr/Chart.yaml index 4ed915f..c9b0360 100644 --- a/charts/bazarr/Chart.yaml +++ b/charts/bazarr/Chart.yaml @@ -3,7 +3,7 @@ kubeVersion: ">=1.23.0-0" name: bazarr description: bazarr helm chart for Kubernetes type: application -version: 0.3.2 +version: 0.4.0 # image: ghcr.io/onedr0p/bazarr appVersion: "1.4.3" maintainers: diff --git a/charts/bazarr/README.md b/charts/bazarr/README.md index 8ff7bb3..319b7b6 100644 --- a/charts/bazarr/README.md +++ b/charts/bazarr/README.md @@ -1,6 +1,6 @@ # bazarr -![Version: 0.3.2](https://img.shields.io/badge/Version-0.3.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.4.3](https://img.shields.io/badge/AppVersion-1.4.3-informational?style=flat-square) +![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.4.3](https://img.shields.io/badge/AppVersion-1.4.3-informational?style=flat-square) bazarr helm chart for Kubernetes @@ -37,7 +37,7 @@ helm repo add adminafk https://helm-charts.adminafk.fr | autoscaling.maxReplicas | int | `100` | | | autoscaling.minReplicas | int | `1` | | | autoscaling.targetCPUUtilizationPercentage | int | `80` | | -| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"name":"","size":"5Gi","volumeName":""}}` | Creating PVC to store configuration | +| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"enabled":true,"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.name | string | `""` | Config name | diff --git a/charts/bazarr/templates/deployment.yaml b/charts/bazarr/templates/deployment.yaml index 878c25c..2902102 100644 --- a/charts/bazarr/templates/deployment.yaml +++ b/charts/bazarr/templates/deployment.yaml @@ -64,19 +64,27 @@ spec: envFrom: {{- toYaml . | nindent 12 }} {{- end }} + {{- if or .Values.config.persistence.enabled .Values.volumeMounts }} volumeMounts: + {{- if .Values.config.persistence.enabled }} - name: config mountPath: /config + {{- end }} {{- with .Values.volumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} + {{- end }} + {{- if or .Values.config.persistence.enabled .Values.volumes }} volumes: + {{- if .Values.config.persistence.enabled }} - name: config persistentVolumeClaim: claimName: {{ include "bazarr.configPersistenceName" . }} + {{- end }} {{- with .Values.volumes }} {{- toYaml . | nindent 8 }} {{- end }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/bazarr/templates/persistentvolumeclaim.yaml b/charts/bazarr/templates/persistentvolumeclaim.yaml index 81e5b90..3624a72 100644 --- a/charts/bazarr/templates/persistentvolumeclaim.yaml +++ b/charts/bazarr/templates/persistentvolumeclaim.yaml @@ -1,3 +1,4 @@ +{{- if .Values.config.persistence.enabled -}} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -17,4 +18,5 @@ spec: {{- end }} resources: requests: - storage: "{{ .Values.config.persistence.size }}" \ No newline at end of file + storage: "{{ .Values.config.persistence.size }}" +{{- end }} \ No newline at end of file diff --git a/charts/bazarr/values.yaml b/charts/bazarr/values.yaml index 9880861..e1d8640 100644 --- a/charts/bazarr/values.yaml +++ b/charts/bazarr/values.yaml @@ -59,6 +59,7 @@ service: # -- Creating PVC to store configuration config: persistence: + enabled: true # -- Size of persistent disk size: 5Gi # -- Annotations for PVCs diff --git a/charts/hyperglass/Chart.yaml b/charts/hyperglass/Chart.yaml index 3abdbac..8a1d01b 100644 --- a/charts/hyperglass/Chart.yaml +++ b/charts/hyperglass/Chart.yaml @@ -3,7 +3,7 @@ kubeVersion: ">=1.23.0-0" name: hyperglass description: hyperglass helm chart for Kubernetes type: application -version: 0.1.5 +version: 0.1.6 # image: ghcr.io/m0nsterrr/hyperglass appVersion: "v2.0.3" maintainers: @@ -15,6 +15,6 @@ home: https://github.com/thatmattlove/hyperglass icon: https://artifacthub.io/image/e417b561-5fe4-4ee3-9b89-f67df4069169 dependencies: - name: valkey - version: 0.3.6 + version: 0.3.7 repository: oci://registry-1.docker.io/bitnamicharts condition: valkey.enabled diff --git a/charts/hyperglass/README.md b/charts/hyperglass/README.md index 90c2e10..8944786 100644 --- a/charts/hyperglass/README.md +++ b/charts/hyperglass/README.md @@ -1,6 +1,6 @@ # hyperglass -![Version: 0.1.5](https://img.shields.io/badge/Version-0.1.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.0.3](https://img.shields.io/badge/AppVersion-v2.0.3-informational?style=flat-square) +![Version: 0.1.6](https://img.shields.io/badge/Version-0.1.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.0.3](https://img.shields.io/badge/AppVersion-v2.0.3-informational?style=flat-square) hyperglass helm chart for Kubernetes @@ -22,7 +22,7 @@ Kubernetes: `>=1.23.0-0` | Repository | Name | Version | |------------|------|---------| -| oci://registry-1.docker.io/bitnamicharts | valkey | 0.3.6 | +| oci://registry-1.docker.io/bitnamicharts | valkey | 0.3.7 | ## Chart Repo diff --git a/charts/prowlarr/Chart.yaml b/charts/prowlarr/Chart.yaml index 12d4de3..5d0d9fc 100644 --- a/charts/prowlarr/Chart.yaml +++ b/charts/prowlarr/Chart.yaml @@ -3,7 +3,7 @@ kubeVersion: ">=1.23.0-0" name: prowlarr description: prowlarr helm chart for Kubernetes type: application -version: 0.3.2 +version: 0.4.0 # image: ghcr.io/onedr0p/prowlarr appVersion: "1.18.0" maintainers: diff --git a/charts/prowlarr/README.md b/charts/prowlarr/README.md index 69450d9..e172a23 100644 --- a/charts/prowlarr/README.md +++ b/charts/prowlarr/README.md @@ -1,6 +1,6 @@ # prowlarr -![Version: 0.3.2](https://img.shields.io/badge/Version-0.3.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.18.0](https://img.shields.io/badge/AppVersion-1.18.0-informational?style=flat-square) +![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.18.0](https://img.shields.io/badge/AppVersion-1.18.0-informational?style=flat-square) prowlarr helm chart for Kubernetes @@ -37,7 +37,7 @@ helm repo add adminafk https://helm-charts.adminafk.fr | autoscaling.maxReplicas | int | `100` | | | autoscaling.minReplicas | int | `1` | | | autoscaling.targetCPUUtilizationPercentage | int | `80` | | -| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"name":"","size":"5Gi","volumeName":""}}` | Creating PVC to store configuration | +| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"enabled":true,"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.name | string | `""` | Config name | diff --git a/charts/prowlarr/templates/deployment.yaml b/charts/prowlarr/templates/deployment.yaml index b1b5173..4dffdbd 100644 --- a/charts/prowlarr/templates/deployment.yaml +++ b/charts/prowlarr/templates/deployment.yaml @@ -64,13 +64,17 @@ spec: envFrom: {{- toYaml . | nindent 12 }} {{- end }} + {{- if .Values.config.persistence.enabled }} volumeMounts: - name: config mountPath: /config + {{- end }} + {{- if .Values.config.persistence.enabled }} volumes: - name: config persistentVolumeClaim: claimName: {{ include "prowlarr.configPersistenceName" . }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/prowlarr/templates/persistentvolumeclaim.yaml b/charts/prowlarr/templates/persistentvolumeclaim.yaml index 4c28de1..9f74d59 100644 --- a/charts/prowlarr/templates/persistentvolumeclaim.yaml +++ b/charts/prowlarr/templates/persistentvolumeclaim.yaml @@ -1,3 +1,4 @@ +{{- if .Values.config.persistence.enabled -}} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -17,4 +18,5 @@ spec: {{- end }} resources: requests: - storage: "{{ .Values.config.persistence.size }}" \ No newline at end of file + storage: "{{ .Values.config.persistence.size }}" +{{- end }} \ No newline at end of file diff --git a/charts/prowlarr/values.yaml b/charts/prowlarr/values.yaml index 4e3f5de..214cb4f 100644 --- a/charts/prowlarr/values.yaml +++ b/charts/prowlarr/values.yaml @@ -59,6 +59,7 @@ service: # -- Creating PVC to store configuration config: persistence: + enabled: true # -- Size of persistent disk size: 5Gi # -- Annotations for PVCs diff --git a/charts/radarr/Chart.yaml b/charts/radarr/Chart.yaml index 5528357..2dea145 100644 --- a/charts/radarr/Chart.yaml +++ b/charts/radarr/Chart.yaml @@ -3,9 +3,9 @@ kubeVersion: ">=1.23.0-0" name: radarr description: radarr helm chart for Kubernetes type: application -version: 0.3.1 +version: 0.4.0 # image: ghcr.io/onedr0p/radarr -appVersion: "5.6.0" +appVersion: "5.7.0" maintainers: - name: Ludovic Ortega email: ludovic.ortega@adminafk.fr diff --git a/charts/radarr/README.md b/charts/radarr/README.md index e026054..5527377 100644 --- a/charts/radarr/README.md +++ b/charts/radarr/README.md @@ -1,6 +1,6 @@ # radarr -![Version: 0.3.1](https://img.shields.io/badge/Version-0.3.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 5.6.0](https://img.shields.io/badge/AppVersion-5.6.0-informational?style=flat-square) +![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 5.7.0](https://img.shields.io/badge/AppVersion-5.7.0-informational?style=flat-square) radarr helm chart for Kubernetes @@ -37,7 +37,7 @@ helm repo add adminafk https://helm-charts.adminafk.fr | autoscaling.maxReplicas | int | `100` | | | autoscaling.minReplicas | int | `1` | | | autoscaling.targetCPUUtilizationPercentage | int | `80` | | -| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"name":"","size":"5Gi","volumeName":""}}` | Creating PVC to store configuration | +| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"enabled":true,"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.name | string | `""` | Config name | diff --git a/charts/radarr/templates/deployment.yaml b/charts/radarr/templates/deployment.yaml index a3ac6b5..d51412a 100644 --- a/charts/radarr/templates/deployment.yaml +++ b/charts/radarr/templates/deployment.yaml @@ -64,19 +64,27 @@ spec: envFrom: {{- toYaml . | nindent 12 }} {{- end }} + {{- if or .Values.config.persistence.enabled .Values.volumeMounts }} volumeMounts: + {{- if .Values.config.persistence.enabled }} - name: config mountPath: /config + {{- end }} {{- with .Values.volumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} + {{- end }} + {{- if or .Values.config.persistence.enabled .Values.volumes }} volumes: + {{- if .Values.config.persistence.enabled }} - name: config persistentVolumeClaim: claimName: {{ include "radarr.configPersistenceName" . }} + {{- end }} {{- with .Values.volumes }} {{- toYaml . | nindent 8 }} {{- end }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/radarr/templates/persistentvolumeclaim.yaml b/charts/radarr/templates/persistentvolumeclaim.yaml index e187a7e..fb3a216 100644 --- a/charts/radarr/templates/persistentvolumeclaim.yaml +++ b/charts/radarr/templates/persistentvolumeclaim.yaml @@ -1,3 +1,4 @@ +{{- if .Values.config.persistence.enabled -}} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -17,4 +18,5 @@ spec: {{- end }} resources: requests: - storage: "{{ .Values.config.persistence.size }}" \ No newline at end of file + storage: "{{ .Values.config.persistence.size }}" +{{- end }} \ No newline at end of file diff --git a/charts/radarr/values.yaml b/charts/radarr/values.yaml index fd02c13..3f56239 100644 --- a/charts/radarr/values.yaml +++ b/charts/radarr/values.yaml @@ -59,6 +59,7 @@ service: # -- Creating PVC to store configuration config: persistence: + enabled: true # -- Size of persistent disk size: 5Gi # -- Annotations for PVCs diff --git a/charts/recyclarr/.helmignore b/charts/recyclarr/.helmignore new file mode 100644 index 0000000..0e8a0eb --- /dev/null +++ b/charts/recyclarr/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/recyclarr/Chart.yaml b/charts/recyclarr/Chart.yaml new file mode 100644 index 0000000..dea3d63 --- /dev/null +++ b/charts/recyclarr/Chart.yaml @@ -0,0 +1,15 @@ +apiVersion: v2 +kubeVersion: ">=1.23.0-0" +name: recyclarr +description: recyclarr helm chart for Kubernetes +type: application +version: 0.1.0 +# image: ghcr.io/recyclarr/recyclarr +appVersion: "6.0.2" +maintainers: + - name: Ludovic Ortega + email: ludovic.ortega@adminafk.fr +sources: + - https://github.com/M0NsTeRRR/helm-charts/tree/main/charts/radarr +home: https://github.com/recyclarr/recyclarr +icon: https://artifacthub.io/image/e417b561-5fe4-4ee3-9b89-f67df4069169 diff --git a/charts/recyclarr/README.md b/charts/recyclarr/README.md new file mode 100644 index 0000000..7dd99d3 --- /dev/null +++ b/charts/recyclarr/README.md @@ -0,0 +1,72 @@ +# recyclarr + +![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 6.0.2](https://img.shields.io/badge/AppVersion-6.0.2-informational?style=flat-square) + +recyclarr helm chart for Kubernetes + +**Homepage:** + +## Maintainers + +| Name | Email | Url | +| ---- | ------ | --- | +| Ludovic Ortega | | | + +## Source Code + +* + +## Requirements + +Kubernetes: `>=1.23.0-0` + +## Chart Repo + +Add the following repo to use the chart: + +```console +helm repo add adminafk https://helm-charts.adminafk.fr +``` + +## Values + +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| affinity | object | `{}` | | +| autoscaling.enabled | bool | `false` | | +| autoscaling.maxReplicas | int | `100` | | +| autoscaling.minReplicas | int | `1` | | +| autoscaling.targetCPUUtilizationPercentage | int | `80` | | +| extraEnv | list | `[]` | Environment variables to add to the bazarr pods | +| extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to the bazarr pods | +| fullnameOverride | string | `""` | | +| image.pullPolicy | string | `"IfNotPresent"` | | +| image.registry | string | `"ghcr.io"` | | +| image.repository | string | `"recyclarr/recyclarr"` | | +| image.sha | string | `""` | | +| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. | +| imagePullSecrets | list | `[]` | | +| nameOverride | string | `""` | | +| nodeSelector | object | `{}` | | +| podAnnotations | object | `{}` | | +| podLabels | object | `{}` | | +| podSecurityContext.fsGroup | int | `65534` | | +| podSecurityContext.fsGroupChangePolicy | string | `"OnRootMismatch"` | | +| replicaCount | int | `1` | | +| resources | object | `{}` | | +| securityContext.allowPrivilegeEscalation | bool | `false` | | +| securityContext.capabilities.drop[0] | string | `"ALL"` | | +| securityContext.privileged | bool | `false` | | +| securityContext.readOnlyRootFilesystem | bool | `true` | | +| securityContext.runAsGroup | int | `65534` | | +| securityContext.runAsNonRoot | bool | `true` | | +| securityContext.runAsUser | int | `65534` | | +| securityContext.seccompProfile.type | string | `"RuntimeDefault"` | | +| serviceAccount.annotations | object | `{}` | Annotations to add to the service account | +| serviceAccount.automount | bool | `true` | Automatically mount a ServiceAccount's API credentials? | +| serviceAccount.create | bool | `true` | Specifies whether a service account should be created | +| serviceAccount.name | string | `""` | If not set and create is true, a name is generated using the fullname template | +| strategy | object | `{"type":"Recreate"}` | Deployment strategy | +| tolerations | list | `[]` | | +| volumeMounts | list | `[]` | Additional volumeMounts on the output Deployment definition. | +| volumes | list | `[]` | Additional volumes on the output Deployment definition. | \ No newline at end of file diff --git a/charts/recyclarr/README.md.gotmpl b/charts/recyclarr/README.md.gotmpl new file mode 100644 index 0000000..5e5401d --- /dev/null +++ b/charts/recyclarr/README.md.gotmpl @@ -0,0 +1,25 @@ +{{ template "chart.header" . }} + +{{ template "chart.deprecationWarning" . }} + +{{ template "chart.badgesSection" . }} + +{{ template "chart.description" . }} + +{{ template "chart.homepageLine" . }} + +{{ template "chart.maintainersSection" . }} + +{{ template "chart.sourcesSection" . }} + +{{ template "chart.requirementsSection" . }} + +## Chart Repo + +Add the following repo to use the chart: + +```console +helm repo add adminafk https://helm-charts.adminafk.fr +``` + +{{ template "chart.valuesSection" . }} \ No newline at end of file diff --git a/charts/recyclarr/templates/NOTES.txt b/charts/recyclarr/templates/NOTES.txt new file mode 100644 index 0000000..aa8a44b --- /dev/null +++ b/charts/recyclarr/templates/NOTES.txt @@ -0,0 +1,5 @@ +*********************************************************************** + Welcome to {{ .Chart.Name }} + Chart version: {{ .Chart.Version }} + App version: {{ .Chart.AppVersion }} +*********************************************************************** \ No newline at end of file diff --git a/charts/recyclarr/templates/_helpers.tpl b/charts/recyclarr/templates/_helpers.tpl new file mode 100644 index 0000000..3171eae --- /dev/null +++ b/charts/recyclarr/templates/_helpers.tpl @@ -0,0 +1,63 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "recyclarr.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "recyclarr.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "recyclarr.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "recyclarr.labels" -}} +helm.sh/chart: {{ include "recyclarr.chart" . }} +{{ include "recyclarr.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/part-of: {{ .Chart.Name }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "recyclarr.selectorLabels" -}} +app.kubernetes.io/name: {{ include "recyclarr.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "recyclarr.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "recyclarr.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} \ No newline at end of file diff --git a/charts/recyclarr/templates/deployment.yaml b/charts/recyclarr/templates/deployment.yaml new file mode 100644 index 0000000..0ab0fd7 --- /dev/null +++ b/charts/recyclarr/templates/deployment.yaml @@ -0,0 +1,74 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "recyclarr.fullname" . }} + labels: + {{- include "recyclarr.labels" . | nindent 4 }} +spec: + {{- if not .Values.autoscaling.enabled }} + replicas: {{ .Values.replicaCount }} + {{- end }} + strategy: + type: {{ .Values.strategy.type }} + selector: + matchLabels: + {{- include "recyclarr.selectorLabels" . | nindent 6 }} + template: + metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} + labels: + {{- include "recyclarr.labels" . | nindent 8 }} + {{- with .Values.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + serviceAccountName: {{ include "recyclarr.serviceAccountName" . }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + containers: + - name: {{ .Chart.Name }} + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + {{- if .Values.image.sha }} + image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}@sha256:{{ .Values.image.sha }}" + {{- else }} + image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + {{- end }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + resources: + {{- toYaml .Values.resources | nindent 12 }} + {{- with .Values.extraEnv }} + env: + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.extraEnvFrom }} + envFrom: + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.volumeMounts }} + volumeMounts: + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.volumes }} + volumes: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/charts/recyclarr/templates/hpa.yaml b/charts/recyclarr/templates/hpa.yaml new file mode 100644 index 0000000..fe85adf --- /dev/null +++ b/charts/recyclarr/templates/hpa.yaml @@ -0,0 +1,32 @@ +{{- if .Values.autoscaling.enabled }} +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: {{ include "recyclarr.fullname" . }} + labels: + {{- include "recyclarr.labels" . | nindent 4 }} +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ include "recyclarr.fullname" . }} + minReplicas: {{ .Values.autoscaling.minReplicas }} + maxReplicas: {{ .Values.autoscaling.maxReplicas }} + metrics: + {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} + {{- end }} + {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} + {{- end }} +{{- end }} diff --git a/charts/recyclarr/templates/serviceaccount.yaml b/charts/recyclarr/templates/serviceaccount.yaml new file mode 100644 index 0000000..401d99b --- /dev/null +++ b/charts/recyclarr/templates/serviceaccount.yaml @@ -0,0 +1,13 @@ +{{- if .Values.serviceAccount.create -}} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "recyclarr.serviceAccountName" . }} + labels: + {{- include "recyclarr.labels" . | nindent 4 }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +automountServiceAccountToken: {{ .Values.serviceAccount.automount }} +{{- end }} diff --git a/charts/recyclarr/values.yaml b/charts/recyclarr/values.yaml new file mode 100644 index 0000000..d016145 --- /dev/null +++ b/charts/recyclarr/values.yaml @@ -0,0 +1,91 @@ +replicaCount: 1 + +image: + registry: ghcr.io + repository: recyclarr/recyclarr + pullPolicy: IfNotPresent + # -- Overrides the image tag whose default is the chart appVersion. + tag: "" + sha: "" + +imagePullSecrets: [] +nameOverride: "" +fullnameOverride: "" + +# -- Deployment strategy +strategy: + type: Recreate + +# -- Environment variables to add to the bazarr pods +extraEnv: [] +# -- Environment variables from secrets or configmaps to add to the bazarr pods +extraEnvFrom: [] + +serviceAccount: + # -- Specifies whether a service account should be created + create: true + # -- Automatically mount a ServiceAccount's API credentials? + automount: true + # -- Annotations to add to the service account + annotations: {} + # -- The name of the service account to use. + # -- If not set and create is true, a name is generated using the fullname template + name: "" + +podAnnotations: {} +podLabels: {} + +podSecurityContext: + fsGroup: 65534 + fsGroupChangePolicy: OnRootMismatch + +securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + runAsNonRoot: true + privileged: false + runAsUser: 65534 + runAsGroup: 65534 + seccompProfile: + type: RuntimeDefault + +resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + +autoscaling: + enabled: false + minReplicas: 1 + maxReplicas: 100 + targetCPUUtilizationPercentage: 80 + # targetMemoryUtilizationPercentage: 80 + +# -- Additional volumes on the output Deployment definition. +volumes: [] +# - name: foo +# secret: +# secretName: mysecret +# optional: false + +# -- Additional volumeMounts on the output Deployment definition. +volumeMounts: [] +# - name: foo +# mountPath: "/etc/foo" +# readOnly: true + +nodeSelector: {} + +tolerations: [] + +affinity: {} diff --git a/charts/routinator/Chart.yaml b/charts/routinator/Chart.yaml index 0dd339f..b46ffa8 100644 --- a/charts/routinator/Chart.yaml +++ b/charts/routinator/Chart.yaml @@ -3,9 +3,9 @@ kubeVersion: ">=1.23.0-0" name: routinator description: routinator helm chart for Kubernetes type: application -version: 0.1.1 +version: 0.1.2 # image: nlnetlabs/routinator -appVersion: "v0.13.2" +appVersion: "v0.14.0" maintainers: - name: Ludovic Ortega email: ludovic.ortega@adminafk.fr diff --git a/charts/routinator/README.md b/charts/routinator/README.md index 8371709..ec153d9 100644 --- a/charts/routinator/README.md +++ b/charts/routinator/README.md @@ -1,6 +1,6 @@ # routinator -![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.13.2](https://img.shields.io/badge/AppVersion-v0.13.2-informational?style=flat-square) +![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.14.0](https://img.shields.io/badge/AppVersion-v0.14.0-informational?style=flat-square) routinator helm chart for Kubernetes diff --git a/charts/sonarr/Chart.yaml b/charts/sonarr/Chart.yaml index 3eb8a3d..31f0b90 100644 --- a/charts/sonarr/Chart.yaml +++ b/charts/sonarr/Chart.yaml @@ -3,7 +3,7 @@ kubeVersion: ">=1.23.0-0" name: sonarr description: sonarr helm chart for Kubernetes type: application -version: 0.3.2 +version: 0.4.0 # image: ghcr.io/onedr0p/sonarr appVersion: "4.0.5" maintainers: diff --git a/charts/sonarr/README.md b/charts/sonarr/README.md index e90f56e..a09acb7 100644 --- a/charts/sonarr/README.md +++ b/charts/sonarr/README.md @@ -1,6 +1,6 @@ # sonarr -![Version: 0.3.2](https://img.shields.io/badge/Version-0.3.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 4.0.5](https://img.shields.io/badge/AppVersion-4.0.5-informational?style=flat-square) +![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 4.0.5](https://img.shields.io/badge/AppVersion-4.0.5-informational?style=flat-square) sonarr helm chart for Kubernetes @@ -37,7 +37,7 @@ helm repo add adminafk https://helm-charts.adminafk.fr | autoscaling.maxReplicas | int | `100` | | | autoscaling.minReplicas | int | `1` | | | autoscaling.targetCPUUtilizationPercentage | int | `80` | | -| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"name":"","size":"5Gi","volumeName":""}}` | Creating PVC to store configuration | +| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"enabled":true,"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.name | string | `""` | Config name | diff --git a/charts/sonarr/templates/deployment.yaml b/charts/sonarr/templates/deployment.yaml index 2ae8ad5..77a99eb 100644 --- a/charts/sonarr/templates/deployment.yaml +++ b/charts/sonarr/templates/deployment.yaml @@ -64,19 +64,27 @@ spec: envFrom: {{- toYaml . | nindent 12 }} {{- end }} + {{- if or .Values.config.persistence.enabled .Values.volumeMounts }} volumeMounts: + {{- if .Values.config.persistence.enabled }} - name: config mountPath: /config + {{- end }} {{- with .Values.volumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} + {{- end }} + {{- if or .Values.config.persistence.enabled .Values.volumes }} volumes: + {{- if .Values.config.persistence.enabled }} - name: config persistentVolumeClaim: claimName: {{ include "sonarr.configPersistenceName" . }} + {{- end }} {{- with .Values.volumes }} {{- toYaml . | nindent 8 }} {{- end }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/sonarr/templates/persistentvolumeclaim.yaml b/charts/sonarr/templates/persistentvolumeclaim.yaml index b718492..b3a5b96 100644 --- a/charts/sonarr/templates/persistentvolumeclaim.yaml +++ b/charts/sonarr/templates/persistentvolumeclaim.yaml @@ -1,3 +1,4 @@ +{{- if .Values.config.persistence.enabled -}} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -17,4 +18,5 @@ spec: {{- end }} resources: requests: - storage: "{{ .Values.config.persistence.size }}" \ No newline at end of file + storage: "{{ .Values.config.persistence.size }}" +{{- end }} \ No newline at end of file diff --git a/charts/sonarr/values.yaml b/charts/sonarr/values.yaml index 7dfaed9..bd1f50a 100644 --- a/charts/sonarr/values.yaml +++ b/charts/sonarr/values.yaml @@ -59,6 +59,7 @@ service: # -- Creating PVC to store configuration config: persistence: + enabled: true # -- Size of persistent disk size: 5Gi # -- Annotations for PVCs