Skip to content

Commit

Permalink
[kube-prometheus-stack] Add automountServiceAccountToken option to pr…
Browse files Browse the repository at this point in the history
…ometheus and prometheus-operator

Signed-off-by: emilkor1 <[email protected]>
  • Loading branch information
emilkor1 committed Feb 23, 2024
1 parent 35b15f0 commit 07f210d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 56.9.0
version: 56.10.0
appVersion: v0.71.2
kubeVersion: ">=1.19.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
namespace: {{ template "kube-prometheus-stack.namespace" . }}
labels:
{{- include "kube-prometheus-stack.prometheus-operator.labels" . | nindent 4 }}
automountServiceAccountToken: {{ .Values.prometheusOperator.serviceAccount.automountServiceAccountToken }}
{{- if .Values.global.imagePullSecrets }}
imagePullSecrets:
{{ include "kube-prometheus-stack.imagePullSecrets" . | trim | indent 2 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ metadata:
annotations:
{{ toYaml .Values.prometheus.serviceAccount.annotations | indent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.prometheus.serviceAccount.automountServiceAccountToken }}
{{- if .Values.global.imagePullSecrets }}
imagePullSecrets:
{{ include "kube-prometheus-stack.imagePullSecrets" . | trim | indent 2 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2435,6 +2435,7 @@ prometheusOperator:
serviceAccount:
create: true
name: ""
automountServiceAccountToken: true

## Configuration for Prometheus operator service
##
Expand Down Expand Up @@ -2784,6 +2785,7 @@ prometheus:
create: true
name: ""
annotations: {}
automountServiceAccountToken: true

# Service for thanos service discovery on sidecar
# Enable this can make Thanos Query can use
Expand Down

0 comments on commit 07f210d

Please sign in to comment.