Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 4e7a00f

Browse files
authored
Helm add possibility to specify confimap env vars(#1519) (#1520)
For example envFrom: - configMapRef: name: signalfx-agent.env
1 parent 275e718 commit 4e7a00f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

deployments/k8s/helm/signalfx-agent/templates/daemonset.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ spec:
134134
{{- with .Values.extraEnv }}
135135
{{- toYaml . | trim | nindent 8 }}
136136
{{- end }}
137+
{{- if .Values.envFrom }}
138+
envFrom:
139+
{{- with .Values.envFrom }}
140+
{{- toYaml . | trim | nindent 8 }}
141+
{{- end }}
142+
{{- end }}
137143
volumes:
138144
- name: config
139145
configMap:

deployments/k8s/helm/signalfx-agent/templates/deployment.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ spec:
8484
{{- with .Values.extraEnv }}
8585
{{- toYaml . | trim | nindent 8 }}
8686
{{- end }}
87+
{{- if .Values.envFrom }}
88+
envFrom:
89+
{{- with .Values.envFrom }}
90+
{{- toYaml . | trim | nindent 8 }}
91+
{{- end }}
92+
{{- end }}
8793
volumes:
8894
- name: config
8995
configMap:

0 commit comments

Comments
 (0)