[prometheus-stackdriver-exporter] Add possiblity to pass extra args to the exporter (#1051)

* Add possiblity to pass extra args to the exporter

Signed-off-by: Anas <anas-aso@users.noreply.github.com>

* Bump minor version.

Signed-off-by: Anas <anas-aso@users.noreply.github.com>
This commit is contained in:
Anas
2021-06-09 13:02:05 +02:00
committed by GitHub
parent 217a72df8d
commit c49a0333ab
3 changed files with 13 additions and 1 deletions
@@ -1,7 +1,7 @@
apiVersion: v1
description: Stackdriver exporter for Prometheus
name: prometheus-stackdriver-exporter
version: 1.8.3
version: 1.9.0
appVersion: 0.11.0
home: https://www.stackdriver.com/
sources:
@@ -59,6 +59,14 @@ spec:
- name: stackdriver-service-account
mountPath: /etc/secrets/service-account/
{{- end}}
{{- if .Values.extraArgs }}
args:
{{- range $key, $value := .Values.extraArgs }}
{{- if $value }}
- --{{ $key }}={{ $value }}
{{- end }}
{{- end }}
{{- end }}
env:
{{- if or .Values.stackdriver.serviceAccountSecret .Values.stackdriver.serviceAccountKey }}
- name: GOOGLE_APPLICATION_CREDENTIALS
@@ -69,6 +69,10 @@ affinity: {}
annotations: {}
## Pod extra arguments
##
extraArgs: {}
## Node labels for stackdriver-exporter pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##