Skip to content

Commit 68e47fa

Browse files
gawsoftplorsenthil
authored andcommitted
Add extraEnv for add additional env from configmap or secrets to daemonset
1 parent fb6b579 commit 68e47fa

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

charts/aws-vpc-cni/templates/daemonset.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ spec:
8282
{{- range $key, $value := .Values.env }}
8383
- name: {{ $key }}
8484
value: {{ $value | quote }}
85+
{{- end }}
86+
{{- with .Values.extraEnv }}
87+
{{- toYaml .| nindent 12 }}
8588
{{- end }}
8689
- name: MY_NODE_NAME
8790
valueFrom:

charts/aws-vpc-cni/values.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,25 @@ env:
8888
VPC_CNI_VERSION: "v1.18.2"
8989
NETWORK_POLICY_ENFORCING_MODE: "standard"
9090

91+
# Add env from configMap or from secrets
92+
# - name: ENV_VAR1
93+
# valueFrom:
94+
# configMapKeyRef:
95+
# name: example-config
96+
# key: ENV_VAR1
97+
# - name: ENV_VAR2
98+
# valueFrom:
99+
# configMapKeyRef:
100+
# name: example-config
101+
# key: ENV_VAR2
102+
# - name: SECRET_VAR1
103+
# valueFrom:
104+
# secretKeyRef:
105+
# name: example-secret
106+
# key: SECRET_VAR1
107+
extraEnv: []
108+
109+
91110
# this flag enables you to use the match label that was present in the original daemonset deployed by EKS
92111
# You can then annotate and label the original aws-node resources and 'adopt' them into a helm release
93112
originalMatchLabels: false

0 commit comments

Comments
 (0)