Skip to content

Commit

Permalink
[prometheus-pushgateway] Allow disabling automount of service account…
Browse files Browse the repository at this point in the history
… token

Signed-off-by: Øyvind Strømmen <[email protected]>
  • Loading branch information
InsulaVentus committed Feb 16, 2024
1 parent f980b92 commit a0d7192
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-pushgateway/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "v1.7.0"
description: A Helm chart for prometheus pushgateway
name: prometheus-pushgateway
version: 2.6.0
version: 2.7.0
home: https://github.com/prometheus/pushgateway
sources:
- https://github.com/prometheus/pushgateway
Expand Down
1 change: 1 addition & 0 deletions charts/prometheus-pushgateway/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ Returns pod spec
*/}}
{{- define "prometheus-pushgateway.podSpec" -}}
serviceAccountName: {{ include "prometheus-pushgateway.serviceAccountName" . }}
automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
{{- with .Values.priorityClassName }}
priorityClassName: {{ . | quote }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ metadata:
{{- end }}
name: {{ include "prometheus-pushgateway.serviceAccountName" . }}
namespace: {{ template "prometheus-pushgateway.namespace" . }}
automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/prometheus-pushgateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ service:
loadBalancerIP: ""
loadBalancerSourceRanges: []

# Whether to automatically mount a service account token into the pod
automountServiceAccountToken: true

# Optional pod annotations
podAnnotations: {}

Expand Down

0 comments on commit a0d7192

Please sign in to comment.