diff --git a/charts/prometheus-stackdriver-exporter/Chart.yaml b/charts/prometheus-stackdriver-exporter/Chart.yaml index 73d89876..ef3baa96 100644 --- a/charts/prometheus-stackdriver-exporter/Chart.yaml +++ b/charts/prometheus-stackdriver-exporter/Chart.yaml @@ -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: diff --git a/charts/prometheus-stackdriver-exporter/templates/deployment.yaml b/charts/prometheus-stackdriver-exporter/templates/deployment.yaml index b2270017..035019ae 100644 --- a/charts/prometheus-stackdriver-exporter/templates/deployment.yaml +++ b/charts/prometheus-stackdriver-exporter/templates/deployment.yaml @@ -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 diff --git a/charts/prometheus-stackdriver-exporter/values.yaml b/charts/prometheus-stackdriver-exporter/values.yaml index 944b4c06..90efe1ac 100644 --- a/charts/prometheus-stackdriver-exporter/values.yaml +++ b/charts/prometheus-stackdriver-exporter/values.yaml @@ -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/ ##