Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/upgrade #66

Merged
merged 2 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/joal/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kubeVersion: ">=1.23.0-0"
name: joal
description: joal helm chart for Kubernetes
type: application
version: 0.2.1
version: 0.2.2
# image: anthonyraymond/joal
appVersion: "2.1.36"
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/joal/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# joal

![Version: 0.2.1](https://img.shields.io/badge/Version-0.2.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.1.36](https://img.shields.io/badge/AppVersion-2.1.36-informational?style=flat-square)
![Version: 0.2.2](https://img.shields.io/badge/Version-0.2.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.1.36](https://img.shields.io/badge/AppVersion-2.1.36-informational?style=flat-square)

joal helm chart for Kubernetes

Expand Down
2 changes: 1 addition & 1 deletion charts/joal/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
{{- else }}
image: "{{ .Values.initContainerImage.registry }}/{{ .Values.initContainerImage.repository }}:{{ .Values.initContainerImage.tag }}"
{{- end }}
command: ['sh', '-c', 'mkdir -p /data/torrents']
command: ['sh', '-c', 'mkdir -p /data/torrents/archived']
volumeMounts:
- name: config
mountPath: /data
Expand Down
2 changes: 1 addition & 1 deletion charts/recyclarr/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kubeVersion: ">=1.23.0-0"
name: recyclarr
description: recyclarr helm chart for Kubernetes
type: application
version: 0.1.1
version: 0.1.2
# image: ghcr.io/recyclarr/recyclarr
appVersion: "6.0.2"
maintainers:
Expand Down
14 changes: 6 additions & 8 deletions charts/recyclarr/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# recyclarr

![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: 6.0.2](https://img.shields.io/badge/AppVersion-6.0.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: 6.0.2](https://img.shields.io/badge/AppVersion-6.0.2-informational?style=flat-square)

recyclarr helm chart for Kubernetes

Expand Down Expand Up @@ -33,27 +33,25 @@ helm repo add adminafk https://helm-charts.adminafk.fr
| 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 |
| failedJobsHistoryLimit | int | `1` | |
| 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 | `[]` | |
| jobAnnotations | object | `{}` | |
| jobLabels | object | `{}` | |
| nameOverride | string | `""` | |
| nodeSelector | object | `{}` | |
| podAnnotations | object | `{}` | |
| podLabels | object | `{}` | |
| podSecurityContext.fsGroup | int | `65534` | |
| podSecurityContext.fsGroupChangePolicy | string | `"OnRootMismatch"` | |
| replicaCount | int | `1` | |
| resources | object | `{}` | |
| scfhedule | string | `"@daily"` | |
| securityContext.allowPrivilegeEscalation | bool | `false` | |
| securityContext.capabilities.drop[0] | string | `"ALL"` | |
| securityContext.privileged | bool | `false` | |
Expand All @@ -66,7 +64,7 @@ helm repo add adminafk https://helm-charts.adminafk.fr
| 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 |
| successfulJobsHistoryLimit | int | `1` | |
| tolerations | list | `[]` | |
| volumeMounts | list | `[]` | Additional volumeMounts on the output Deployment definition. |
| volumes | list | `[]` | Additional volumes on the output Deployment definition. |
9 changes: 0 additions & 9 deletions charts/recyclarr/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,13 @@ 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
*/}}
Expand Down
73 changes: 73 additions & 0 deletions charts/recyclarr/templates/cronjob.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: {{ include "recyclarr.fullname" . }}
labels:
{{- include "recyclarr.labels" . | nindent 4 }}
spec:
concurrencyPolicy: "Replace"
successfulJobsHistoryLimit: {{ .Values.successfulJobsHistoryLimit }}
failedJobsHistoryLimit: {{ .Values.failedJobsHistoryLimit }}
schedule: {{ .Values.schedule }}
jobTemplate:
spec:
template:
metadata:
{{- with .Values.jobAnnotations }}
annotations:
{{- toYaml . | nindent 12 }}
{{- end }}
labels:
{{- include "recyclarr.labels" . | nindent 12 }}
{{- with .Values.jobLabels }}
{{- toYaml . | nindent 12 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 12 }}
{{- end }}
serviceAccountName: {{ include "recyclarr.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 12 }}
containers:
- name: "ffff"
securityContext:
{{- toYaml .Values.securityContext | nindent 16 }}
{{- 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 }}
args: ["sync"]
resources:
{{- toYaml .Values.resources | nindent 16 }}
{{- with .Values.extraEnv }}
env:
{{- toYaml . | nindent 16 }}
{{- end }}
{{- with .Values.extraEnvFrom }}
envFrom:
{{- toYaml . | nindent 16 }}
{{- end }}
{{- with .Values.volumeMounts }}
volumeMounts:
{{- toYaml . | nindent 16 }}
{{- end }}
{{- with .Values.volumes }}
volumes:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 12 }}
{{- end }}
74 changes: 0 additions & 74 deletions charts/recyclarr/templates/deployment.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions charts/recyclarr/templates/hpa.yaml

This file was deleted.

17 changes: 5 additions & 12 deletions charts/recyclarr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

# -- Deployment strategy
strategy:
type: Recreate
scfhedule: "@daily"
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1

# -- Environment variables to add to the bazarr pods
extraEnv: []
Expand All @@ -32,8 +32,8 @@ serviceAccount:
# -- If not set and create is true, a name is generated using the fullname template
name: ""

podAnnotations: {}
podLabels: {}
jobAnnotations: {}
jobLabels: {}

podSecurityContext:
fsGroup: 65534
Expand Down Expand Up @@ -64,13 +64,6 @@ resources: {}
# 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
Expand Down