Skip to content

Commit

Permalink
[prometheus-postgres-exporter] Add automountServiceAccountToken (#3104)
Browse files Browse the repository at this point in the history
* [prometheus-postgres-exporter] Add automountServiceAccountToken

Signed-off-by: stgrace <[email protected]>

* Change to major bump

Signed-off-by: stgrace <[email protected]>

---------

Signed-off-by: stgrace <[email protected]>
Co-authored-by: MH <[email protected]>
  • Loading branch information
stgrace and zanhsieh authored Mar 9, 2023
1 parent 0e2aa2e commit 05cf17c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-postgres-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "0.11.1"
description: A Helm chart for prometheus postgres-exporter
name: prometheus-postgres-exporter
version: 4.3.0
version: 4.4.0
home: https://github.com/prometheus-community/postgres_exporter
sources:
- https://github.com/prometheus-community/postgres_exporter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ spec:
{{ toYaml .Values.annotations | indent 8 }}
{{- end }}
spec:
automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
serviceAccountName: {{ template "prometheus-postgres-exporter.serviceAccountName" . }}
{{- with .Values.podSecurityContext }}
securityContext:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
metadata:
name: {{ template "prometheus-postgres-exporter.serviceAccountName" . }}
labels:
Expand Down
2 changes: 2 additions & 0 deletions charts/prometheus-postgres-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ service:
labels: {}
annotations: {}

automountServiceAccountToken: false

serviceMonitor:
# When set true then use a ServiceMonitor to configure scraping
enabled: false
Expand Down

0 comments on commit 05cf17c

Please sign in to comment.