From aa180bfcea1f5e99ee5952d518231cc87a101293 Mon Sep 17 00:00:00 2001 From: Arlan Lloyd Date: Thu, 30 Oct 2025 23:17:40 +0000 Subject: [PATCH] purge autosync! --- chart/templates/_helpers.tpl | 18 ---- chart/templates/autosync/deployment.yaml | 89 -------------------- chart/templates/autosync/serviceaccount.yaml | 13 --- chart/values.yaml | 30 ------- 4 files changed, 150 deletions(-) delete mode 100644 chart/templates/autosync/deployment.yaml delete mode 100644 chart/templates/autosync/serviceaccount.yaml diff --git a/chart/templates/_helpers.tpl b/chart/templates/_helpers.tpl index f472bb6b..7f923538 100644 --- a/chart/templates/_helpers.tpl +++ b/chart/templates/_helpers.tpl @@ -5,24 +5,6 @@ Create kyoo ingress name {{- printf "%s-%s" (include "kyoo.fullname" .) "ingress" | trunc 63 | trimSuffix "-" -}} {{- end -}} -{{/* -Create kyoo autosync name -*/}} -{{- define "kyoo.autosync.fullname" -}} -{{- printf "%s-%s" (include "kyoo.fullname" .) .Values.autosync.name | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -Create the name of the autosync service account to use -*/}} -{{- define "kyoo.autosync.serviceAccountName" -}} -{{- if .Values.autosync.serviceAccount.create -}} - {{ default (include "kyoo.autosync.fullname" .) .Values.autosync.serviceAccount.name }} -{{- else -}} - {{ default "default" .Values.autosync.serviceAccount.name }} -{{- end -}} -{{- end -}} - {{/* Create kyoo auth name */}} diff --git a/chart/templates/autosync/deployment.yaml b/chart/templates/autosync/deployment.yaml deleted file mode 100644 index b2e27ab8..00000000 --- a/chart/templates/autosync/deployment.yaml +++ /dev/null @@ -1,89 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - {{- with (mergeOverwrite (deepCopy .Values.global.deploymentAnnotations) .Values.autosync.deploymentAnnotations) }} - annotations: - {{- range $key, $value := . }} - {{ $key }}: {{ $value | quote }} - {{- end }} - {{- end }} - name: {{ include "kyoo.autosync.fullname" . }} - labels: - {{- include "kyoo.labels" (dict "context" . "component" .Values.autosync.name "name" .Values.autosync.name) | nindent 4 }} -spec: - replicas: {{ .Values.autosync.replicaCount }} - {{- with .Values.autosync.updateStrategy }} - strategy: - {{- toYaml . | nindent 4 }} - {{- end }} - selector: - matchLabels: - {{- include "kyoo.selectorLabels" (dict "context" . "name" .Values.autosync.name) | nindent 6 }} - template: - metadata: - {{- with (mergeOverwrite (deepCopy .Values.global.podAnnotations) .Values.autosync.podAnnotations) }} - annotations: - {{- range $key, $value := . }} - {{ $key }}: {{ $value | quote }} - {{- end }} - {{- end }} - labels: - {{- include "kyoo.labels" (dict "context" . "component" .Values.autosync.name "name" .Values.autosync.name) | nindent 8 }} - {{- with (mergeOverwrite (deepCopy .Values.global.podLabels) .Values.autosync.podLabels) }} - {{- toYaml . | nindent 8 }} - {{- end }} - spec: - {{- with .Values.autosync.imagePullSecrets | default .Values.global.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.global.securityContext }} - securityContext: - {{- toYaml . | nindent 8 }} - {{- end }} - serviceAccountName: {{ include "kyoo.autosync.serviceAccountName" . }} - containers: - - name: main - image: {{ .Values.autosync.kyoo_autosync.image.repository | default (printf "%s/kyoo_autosync" .Values.global.image.repositoryBase) }}:{{ default (include "kyoo.defaultTag" .) .Values.autosync.kyoo_autosync.image.tag }} - imagePullPolicy: {{ default .Values.global.image.imagePullPolicy }} - args: - {{- with .Values.autosync.kyoo_autosync.extraArgs }} - {{- toYaml . | nindent 12 }} - {{- end }} - env: - - name: PLACEHOLDER - value: PLACEHOLDER - {{- with (concat .Values.global.extraEnv .Values.autosync.kyoo_autosync.extraEnv) }} - {{- toYaml . | nindent 12 }} - {{- end }} - {{- with .Values.autosync.kyoo_autosync.livenessProbe }} - livenessProbe: - {{- toYaml . | nindent 12 }} - {{- end }} - {{- with .Values.autosync.kyoo_autosync.readinessProbe }} - readinessProbe: - {{- toYaml . | nindent 12 }} - {{- end }} - {{- with .Values.autosync.kyoo_autosync.resources }} - resources: - {{- toYaml . | nindent 12 }} - {{- end }} - {{- with .Values.autosync.kyoo_autosync.containerSecurityContext }} - securityContext: - {{- toYaml . | nindent 12 }} - {{- end }} - {{- with .Values.autosync.kyoo_autosync.extraVolumeMounts }} - volumeMounts: - {{- toYaml . | nindent 12 }} - {{- end }} - {{- with .Values.autosync.extraContainers }} - {{- tpl (toYaml .) $ | nindent 8 }} - {{- end }} - {{- with .Values.autosync.extraInitContainers }} - initContainers: - {{- tpl (toYaml .) $ | nindent 6 }} - {{- end }} - {{- with .Values.autosync.extraVolumes }} - volumes: - {{- toYaml . | nindent 8 }} - {{- end }} \ No newline at end of file diff --git a/chart/templates/autosync/serviceaccount.yaml b/chart/templates/autosync/serviceaccount.yaml deleted file mode 100644 index ef2dee88..00000000 --- a/chart/templates/autosync/serviceaccount.yaml +++ /dev/null @@ -1,13 +0,0 @@ -{{- if .Values.autosync.serviceAccount.create -}} -apiVersion: v1 -kind: ServiceAccount -automountServiceAccountToken: {{ .Values.autosync.serviceAccount.automount }} -metadata: - name: {{ include "kyoo.autosync.serviceAccountName" . }} - labels: - {{- include "kyoo.labels" (dict "context" . "component" .Values.autosync.name "name" .Values.autosync.name) | nindent 4 }} - {{- with .Values.autosync.serviceAccount.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -{{- end }} diff --git a/chart/values.yaml b/chart/values.yaml index c4892d98..8a236d03 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -148,36 +148,6 @@ contentdatabase: pinKey: tvdb_pin existingSecret: bigsecret -# autosync deployment configuration -autosync: - name: autosync - # kyoo_autosync container configuration - kyoo_autosync: - livenessProbe: {} - readinessProbe: {} - resources: {} - containerSecurityContext: {} - extraVolumeMounts: [] - extraArgs: [] - extraEnv: [] - image: - repository: ~ - tag: ~ - replicaCount: 1 - updateStrategy: ~ - podLabels: {} - deploymentAnnotations: {} - podAnnotations: {} - imagePullSecrets: [] - serviceAccount: - create: true - automount: true - annotations: {} - name: ~ - extraContainers: [] - extraInitContainers: [] - extraVolumes: [] - # auth deployment configuration auth: name: auth