From c0f8ed852093bbfafb9533f9e22defc1d024ae09 Mon Sep 17 00:00:00 2001 From: Christoph Mewes Date: Wed, 26 Aug 2020 17:27:46 +0200 Subject: [PATCH] Fix duplicate args in Helm chart --- helm/templates/deployment.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index b0934bb..427c9ac 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -33,17 +33,15 @@ spec: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - name: {{ .Chart.Name }} - {{- if .Values.config }} - args: - - --config=/config/config.yaml - command: - - helm-exporter - {{- end }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} args: + {{- if .Values.config }} + - "-config" + - "/config/config.yaml" + {{- end }} {{- if .Values.namespaces }} - "-namespaces" - {{ .Values.namespaces | quote }}