From 2b3d3d01aec02f8c2f8da48c5fe2b4b2ed7e28dd Mon Sep 17 00:00:00 2001 From: Paulo Sousa Date: Fri, 28 Feb 2020 11:44:16 -0300 Subject: [PATCH] helm: allow multiple values for node-label flag --- helm/draino/templates/deployment.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/helm/draino/templates/deployment.yaml b/helm/draino/templates/deployment.yaml index 50b40d72..187627b3 100644 --- a/helm/draino/templates/deployment.yaml +++ b/helm/draino/templates/deployment.yaml @@ -36,7 +36,13 @@ spec: - --dry-run {{ end }} {{- range $key, $value := .Values.extraArgs }} + {{- if eq $key "node-label" }} + {{- range $value }} + - --node-label={{ . }} + {{- end }} + {{- else }} - --{{ $key }}{{ if $value }}={{ $value }}{{ end }} + {{- end }} {{- end }} {{- range .Values.conditions }} - {{ . }}