From 624bffbc306b1ff67acf6ecf9f874144abc189b1 Mon Sep 17 00:00:00 2001 From: LeoKaynan Date: Tue, 30 Sep 2025 09:24:43 -0300 Subject: [PATCH] Make Helm webapp chart images configurable Adds configurability for init and token syncer container images through new values in the Helm chart configuration --- hosting/k8s/helm/Chart.yaml | 2 +- hosting/k8s/helm/templates/webapp.yaml | 6 ++++-- hosting/k8s/helm/values.yaml | 14 ++++++++++++++ 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/hosting/k8s/helm/Chart.yaml b/hosting/k8s/helm/Chart.yaml index 42d962130f..f88378829b 100644 --- a/hosting/k8s/helm/Chart.yaml +++ b/hosting/k8s/helm/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: trigger description: The official Trigger.dev Helm chart type: application -version: 4.0.1 +version: 4.0.2 appVersion: v4.0.4 home: https://trigger.dev sources: diff --git a/hosting/k8s/helm/templates/webapp.yaml b/hosting/k8s/helm/templates/webapp.yaml index f9f59c363f..974da80a82 100644 --- a/hosting/k8s/helm/templates/webapp.yaml +++ b/hosting/k8s/helm/templates/webapp.yaml @@ -68,7 +68,8 @@ spec: {{- end }} initContainers: - name: init-shared - image: busybox:1.35 + image: "{{ .Values.webapp.initImage.registry }}/{{ .Values.webapp.initImage.repository }}:{{ .Values.webapp.initImage.tag }}" + imagePullPolicy: {{ .Values.webapp.initImage.pullPolicy }} command: ['sh', '-c', 'mkdir -p /home/node/shared'] securityContext: runAsUser: 1000 @@ -77,7 +78,8 @@ spec: mountPath: /home/node/shared containers: - name: token-syncer - image: bitnami/kubectl:1.28 + image: "{{ .Values.webapp.tokenSyncerImage.registry }}/{{ .Values.webapp.tokenSyncerImage.repository }}:{{ .Values.webapp.tokenSyncerImage.tag }}" + imagePullPolicy: {{ .Values.webapp.tokenSyncerImage.pullPolicy }} securityContext: runAsUser: 1000 runAsNonRoot: true diff --git a/hosting/k8s/helm/values.yaml b/hosting/k8s/helm/values.yaml index 5f8fdaf046..3f4488d471 100644 --- a/hosting/k8s/helm/values.yaml +++ b/hosting/k8s/helm/values.yaml @@ -45,6 +45,20 @@ webapp: tag: "" # Defaults to Chart.appVersion when empty pullPolicy: IfNotPresent + # Init container image configuration + initImage: + registry: docker.io + repository: busybox + tag: "1.35" + pullPolicy: IfNotPresent + + # Token syncer image configuration + tokenSyncerImage: + registry: docker.io + repository: bitnami/kubectl + tag: "1.28" + pullPolicy: IfNotPresent + # Origin configuration appOrigin: "http://localhost:3040" loginOrigin: "http://localhost:3040"