Skip to content

Commit

Permalink
Add extraEnv for add additional env from configmap or secrets to daem…
Browse files Browse the repository at this point in the history
…onset
  • Loading branch information
gawsoftpl committed Jun 5, 2024
1 parent 8f9253e commit bcc8061
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/aws-vpc-cni/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ spec:
{{- range $key, $value := .Values.env }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- with .Values.extraEnv }}
{{- toYaml .| nindent 12 }}
{{- end }}
- name: MY_NODE_NAME
valueFrom:
Expand Down
19 changes: 19 additions & 0 deletions charts/aws-vpc-cni/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,25 @@ env:
VPC_CNI_VERSION: "v1.18.2"
NETWORK_POLICY_ENFORCING_MODE: "standard"

# Add env from configMap or from secrets
# - name: ENV_VAR1
# valueFrom:
# configMapKeyRef:
# name: example-config
# key: ENV_VAR1
# - name: ENV_VAR2
# valueFrom:
# configMapKeyRef:
# name: example-config
# key: ENV_VAR2
# - name: SECRET_VAR1
# valueFrom:
# secretKeyRef:
# name: example-secret
# key: SECRET_VAR1
extraEnv: []


# this flag enables you to use the match label that was present in the original daemonset deployed by EKS
# You can then annotate and label the original aws-node resources and 'adopt' them into a helm release
originalMatchLabels: false
Expand Down

0 comments on commit bcc8061

Please sign in to comment.