Skip to content

Commit eabcd9d

Browse files
committed
feat(helm): add envFromSecrets to stdout template
Signed-off-by: Bagautdino <[email protected]>
1 parent b0ecd1b commit eabcd9d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

install/kubernetes/tetragon/templates/_container_export_stdout.tpl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,23 @@
33
image: "{{ if .Values.export.stdout.image.override }}{{ .Values.export.stdout.image.override }}{{ else }}{{ .Values.export.stdout.image.repository }}:{{ .Values.export.stdout.image.tag }}{{ end }}"
44
imagePullPolicy: {{ .Values.imagePullPolicy }}
55
terminationMessagePolicy: FallbackToLogsOnError
6+
67
env: {{- toYaml .Values.export.stdout.extraEnv | nindent 4 }}
8+
9+
{{- if .Values.export.stdout.extraEnvFrom }}
10+
envFrom:
11+
{{- toYaml .Values.export.stdout.extraEnvFrom | nindent 4 }}
12+
{{- else if .Values.export.stdout.envFromSecrets }}
13+
envFrom:
14+
{{- range .Values.export.stdout.envFromSecrets }}
15+
- secretRef:
16+
name: {{ .name | default . }}
17+
{{- if hasKey . "optional" }}
18+
optional: {{ .optional }}
19+
{{- end }}
20+
{{- end }}
21+
{{- end }}
22+
723
securityContext:
824
{{- toYaml .Values.export.securityContext | nindent 4 }}
925
resources:

0 commit comments

Comments
 (0)