Skip to content

Commit a63fe15

Browse files
fix(supervisor): wire workerPodSecurityContext/etc env vars
PR #12 added supervisor.config.kubernetes.workerPodSecurityContext, workerContainerSecurityContext, and workerPodAnnotations to values.yaml but the supervisor.yaml template never read them. The supervisor's Kubernetes workload manager reads KUBERNETES_WORKER_POD_SECURITY_CONTEXT, KUBERNETES_WORKER_CONTAINER_SECURITY_CONTEXT, and KUBERNETES_WORKER_POD_ANNOTATIONS env vars at runtime (JSON-parsed) and applies them to every worker pod it schedules. Without this wiring, worker pods on FedStart / GameWarden deployments are missing their compliance-required securityContext entries and would be rejected by pod-security admission. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 60e3ebe commit a63fe15

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

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.4.5-plt663.1
5+
version: 4.4.5-plt663.2
66
appVersion: v4.4.4
77
home: https://trigger.dev
88
sources:

hosting/k8s/helm/templates/supervisor.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,18 @@ spec:
174174
value: {{ .Values.supervisor.config.kubernetes.workerServiceAccount | quote }}
175175
- name: KUBERNETES_WORKER_AUTOMOUNT_SERVICE_ACCOUNT_TOKEN
176176
value: {{ .Values.supervisor.config.kubernetes.workerAutomountServiceAccountToken | quote }}
177+
{{- if .Values.supervisor.config.kubernetes.workerPodSecurityContext }}
178+
- name: KUBERNETES_WORKER_POD_SECURITY_CONTEXT
179+
value: {{ .Values.supervisor.config.kubernetes.workerPodSecurityContext | toJson | quote }}
180+
{{- end }}
181+
{{- if .Values.supervisor.config.kubernetes.workerContainerSecurityContext }}
182+
- name: KUBERNETES_WORKER_CONTAINER_SECURITY_CONTEXT
183+
value: {{ .Values.supervisor.config.kubernetes.workerContainerSecurityContext | toJson | quote }}
184+
{{- end }}
185+
{{- if .Values.supervisor.config.kubernetes.workerPodAnnotations }}
186+
- name: KUBERNETES_WORKER_POD_ANNOTATIONS
187+
value: {{ .Values.supervisor.config.kubernetes.workerPodAnnotations | toJson | quote }}
188+
{{- end }}
177189
{{- $registryAuthEnabled := false }}
178190
{{- if .Values.registry.deploy }}
179191
{{- $registryAuthEnabled = .Values.registry.auth.enabled }}

0 commit comments

Comments
 (0)