Skip to content

Commit

Permalink
[prometheus-stackdriver-exporter] bump to 0.18.0 and extraEnv support (
Browse files Browse the repository at this point in the history
…#5194)

Signed-off-by: Antoine Deschênes <[email protected]>
  • Loading branch information
antoinedeschenes authored Jan 20, 2025
1 parent d06fd3a commit 87187e1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/prometheus-stackdriver-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
description: Stackdriver exporter for Prometheus
name: prometheus-stackdriver-exporter
version: 4.7.1
appVersion: v0.17.0
version: 4.8.0
appVersion: v0.18.0
home: https://www.stackdriver.com/
sources:
- https://github.com/prometheus-community/stackdriver_exporter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,15 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if or .Values.stackdriver.serviceAccountSecret .Values.stackdriver.serviceAccountKey }}
{{- if or .Values.stackdriver.serviceAccountSecret .Values.stackdriver.serviceAccountKey .Values.extraEnv }}
env:
{{- if or .Values.stackdriver.serviceAccountSecret .Values.stackdriver.serviceAccountKey }}
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/secrets/service-account/credentials.json
{{- end }}
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down
6 changes: 6 additions & 0 deletions charts/prometheus-stackdriver-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ annotations: {}
##
extraArgs: {}

## Extra environment variables
##
extraEnv: []
# - name: GOMAXPROCS
# value: "2"

## Node labels for stackdriver-exporter pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
Expand Down

0 comments on commit 87187e1

Please sign in to comment.