Skip to content

Commit

Permalink
[prometheus] Allow setting automountServiceAccountToken (#3911)
Browse files Browse the repository at this point in the history
* Allow turning setting  automountServiceAccountToken

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

* Allow turning setting  automountServiceAccountToken

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

---------

Signed-off-by: drfaust92 <[email protected]>
  • Loading branch information
DrFaust92 authored Oct 22, 2023
1 parent 0119a7d commit bf50cd3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: prometheus
appVersion: v2.47.0
version: 25.1.0
version: 25.2.0
kubeVersion: ">=1.19.0-0"
description: Prometheus is a monitoring system and time series database.
home: https://prometheus.io/
Expand Down
3 changes: 3 additions & 0 deletions charts/prometheus/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ metadata:
namespace: {{ include "prometheus.namespace" . }}
annotations:
{{ toYaml .Values.serviceAccounts.server.annotations | indent 4 }}
{{- if .Values.serviceAccounts.server.automountServiceAccountToken }}
automountServiceAccountToken: {{ .Values.serviceAccounts.server.automountServiceAccountToken }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/prometheus/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,9 @@
},
"name": {
"type": "string"
},
"automountServiceAccountToken": {
"type": "boolean"
}
}
}
Expand Down
1 change: 1 addition & 0 deletions charts/prometheus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ serviceAccounts:
create: true
name: ""
annotations: {}
# automountServiceAccountToken:

## Monitors ConfigMap changes and POSTs to a URL
## Ref: https://github.com/prometheus-operator/prometheus-operator/tree/main/cmd/prometheus-config-reloader
Expand Down

0 comments on commit bf50cd3

Please sign in to comment.