diff --git a/deploy/charts/external-secrets/templates/deployment.yaml b/deploy/charts/external-secrets/templates/deployment.yaml index a54ca170..7ef0cbcb 100644 --- a/deploy/charts/external-secrets/templates/deployment.yaml +++ b/deploy/charts/external-secrets/templates/deployment.yaml @@ -38,6 +38,7 @@ spec: {{- end }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + {{- if or (.Values.leaderElect) (.Values.extraArgs) }} args: {{- if .Values.leaderElect }} - --enable-leader-election=true @@ -49,6 +50,7 @@ spec: - --{{ $key }} {{- end }} {{- end }} + {{- end }} ports: - containerPort: {{ .Values.prometheus.service.port }} protocol: TCP