Skip to content

Commit c3789e1

Browse files
LeoKaynannicktrn
authored andcommitted
Make Helm webapp chart images configurable
Adds configurability for init and token syncer container images through new values in the Helm chart configuration
1 parent c588f7e commit c3789e1

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

hosting/k8s/helm/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: trigger
33
description: The official Trigger.dev Helm chart
44
type: application
5-
version: 4.0.1
5+
version: 4.0.2
66
appVersion: v4.0.4
77
home: https://trigger.dev
88
sources:

hosting/k8s/helm/templates/webapp.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ spec:
6868
{{- end }}
6969
initContainers:
7070
- name: init-shared
71-
image: busybox:1.35
71+
image: "{{ .Values.webapp.initImage.registry }}/{{ .Values.webapp.initImage.repository }}:{{ .Values.webapp.initImage.tag }}"
72+
imagePullPolicy: {{ .Values.webapp.initImage.pullPolicy }}
7273
command: ['sh', '-c', 'mkdir -p /home/node/shared']
7374
securityContext:
7475
runAsUser: 1000
@@ -77,7 +78,8 @@ spec:
7778
mountPath: /home/node/shared
7879
containers:
7980
- name: token-syncer
80-
image: bitnamilegacy/kubectl:1.28
81+
image: "{{ .Values.webapp.tokenSyncerImage.registry }}/{{ .Values.webapp.tokenSyncerImage.repository }}:{{ .Values.webapp.tokenSyncerImage.tag }}"
82+
imagePullPolicy: {{ .Values.webapp.tokenSyncerImage.pullPolicy }}
8183
securityContext:
8284
runAsUser: 1000
8385
runAsNonRoot: true

hosting/k8s/helm/values.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,20 @@ webapp:
4848
tag: "" # Defaults to Chart.appVersion when empty
4949
pullPolicy: IfNotPresent
5050

51+
# Init container image configuration
52+
initImage:
53+
registry: docker.io
54+
repository: busybox
55+
tag: "1.35"
56+
pullPolicy: IfNotPresent
57+
58+
# Token syncer image configuration
59+
tokenSyncerImage:
60+
registry: docker.io
61+
repository: bitnamilegacy/kubectl
62+
tag: "1.28"
63+
pullPolicy: IfNotPresent
64+
5165
# Origin configuration
5266
appOrigin: "http://localhost:3040"
5367
loginOrigin: "http://localhost:3040"

0 commit comments

Comments
 (0)