From 2fd5f0a2ee2361482e83a0f9e3f76a9d7ab01fad Mon Sep 17 00:00:00 2001 From: Hamish Date: Tue, 16 Aug 2022 15:53:21 +1200 Subject: [PATCH] helm: Apply extraEnv to daemonsets --- .../templates/daemonset.linux.yaml | 3 +++ .../templates/daemonset.windows.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/config/helm/aws-node-termination-handler/templates/daemonset.linux.yaml b/config/helm/aws-node-termination-handler/templates/daemonset.linux.yaml index 5fcac07e..b6568ad6 100644 --- a/config/helm/aws-node-termination-handler/templates/daemonset.linux.yaml +++ b/config/helm/aws-node-termination-handler/templates/daemonset.linux.yaml @@ -151,6 +151,9 @@ spec: value: "false" - name: UPTIME_FROM_FILE value: {{ .Values.procUptimeFile | quote }} + {{- with .Values.extraEnv }} + {{- toYaml . | nindent 12 }} + {{- end }} {{- if or .Values.enablePrometheusServer .Values.enableProbesServer }} ports: {{- if .Values.enableProbesServer }} diff --git a/config/helm/aws-node-termination-handler/templates/daemonset.windows.yaml b/config/helm/aws-node-termination-handler/templates/daemonset.windows.yaml index ec5be64f..6a9118fe 100644 --- a/config/helm/aws-node-termination-handler/templates/daemonset.windows.yaml +++ b/config/helm/aws-node-termination-handler/templates/daemonset.windows.yaml @@ -149,6 +149,9 @@ spec: value: {{ .Values.enableRebalanceDraining | quote }} - name: ENABLE_SQS_TERMINATION_DRAINING value: "false" + {{- with .Values.extraEnv }} + {{- toYaml . | nindent 12 }} + {{- end }} {{- if or .Values.enablePrometheusServer .Values.enableProbesServer }} ports: {{- if .Values.enableProbesServer }}