Skip to content

Commit 65e2dcf

Browse files
committed
secrets.enabled
1 parent 8eacb1e commit 65e2dcf

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

hosting/k8s/helm/templates/secrets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if not .Values.secrets.existingSecret }}
1+
{{- if and .Values.secrets.enabled (not .Values.secrets.existingSecret) }}
22
apiVersion: v1
33
kind: Secret
44
metadata:

hosting/k8s/helm/templates/supervisor.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,13 @@ spec:
118118
value: "http://{{ include "trigger-v4.fullname" . }}-webapp:{{ .Values.webapp.service.port }}"
119119
- name: TRIGGER_WORKER_TOKEN
120120
value: "file:///home/node/shared/worker_token"
121+
{{- if .Values.secrets.enabled }}
121122
- name: MANAGED_WORKER_SECRET
122123
valueFrom:
123124
secretKeyRef:
124125
name: {{ include "trigger-v4.secretsName" . }}
125126
key: managed-worker-secret
127+
{{- end }}
126128
# Worker instance configuration
127129
- name: TRIGGER_WORKER_INSTANCE_NAME
128130
valueFrom:

hosting/k8s/helm/templates/webapp.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ spec:
125125
- name: DEFAULT_ORG_EXECUTION_CONCURRENCY_LIMIT
126126
value: {{ .Values.webapp.limits.defaultOrgExecutionConcurrencyLimit | quote }}
127127
{{- end }}
128+
{{- if .Values.secrets.enabled }}
128129
- name: SESSION_SECRET
129130
valueFrom:
130131
secretKeyRef:
@@ -155,6 +156,7 @@ spec:
155156
secretKeyRef:
156157
name: {{ include "trigger-v4.secretsName" . }}
157158
key: object-store-secret-access-key
159+
{{- end }}
158160
{{- if and .Values.webapp.internal .Values.webapp.internal.otel }}
159161
{{- if .Values.webapp.internal.otel.trace.exporterUrl }}
160162
- name: INTERNAL_OTEL_TRACE_EXPORTER_URL

hosting/k8s/helm/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ config:
149149
# 2. Override these values in your values.yaml or use external secret management
150150
# 3. Each secret must be exactly 32 hex characters (16 bytes)
151151
secrets:
152+
# Enable/disable creation of secrets
153+
# Set to false to use external secret management (Vault, Infisical, External Secrets, etc.)
154+
# When disabled, use extraEnv and podAnnotations for secret injection
155+
enabled: true
156+
152157
# Name of existing secret to use instead of creating one
153158
# If empty, a secret will be created with the values below
154159
# The secret must contain the following keys:

0 commit comments

Comments
 (0)