Skip to content

Commit afb98d8

Browse files
committed
add envFromSecrets to generate-st2client-config initContainers
1 parent 3265932 commit afb98d8

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

templates/deployments.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,6 +1490,10 @@ spec:
14901490
name: {{ .Release.Name }}-st2-urls
14911491
- secretRef:
14921492
name: {{ .Release.Name }}-st2-auth
1493+
{{- range .Values.st2client.envFromSecrets }}
1494+
- secretRef:
1495+
name: {{ . }}
1496+
{{- end }}
14931497
volumeMounts:
14941498
- name: st2client-config-vol
14951499
mountPath: /root/.st2/

templates/jobs.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ spec:
157157
name: {{ .Release.Name }}-st2-urls
158158
- secretRef:
159159
name: {{ .Release.Name }}-st2-auth
160+
{{- range .Values.jobs.envFromSecrets }}
161+
- secretRef:
162+
name: {{ . }}
163+
{{- end }}
160164
volumeMounts:
161165
- name: st2client-config-vol
162166
mountPath: /root/.st2/
@@ -271,6 +275,10 @@ spec:
271275
name: {{ .Release.Name }}-st2-urls
272276
- secretRef:
273277
name: {{ .Release.Name }}-st2-auth
278+
{{- range .Values.jobs.envFromSecrets }}
279+
- secretRef:
280+
name: {{ . }}
281+
{{- end }}
274282
volumeMounts:
275283
- name: st2client-config-vol
276284
mountPath: /root/.st2/

0 commit comments

Comments
 (0)