Skip to content

Commit

Permalink
add serviceName option to prometheus CR
Browse files Browse the repository at this point in the history
Signed-off-by: trouaux <[email protected]>
Signed-off-by: Thomas Rouaux <[email protected]>
  • Loading branch information
trouaux committed Feb 5, 2025
1 parent f4f38ef commit 9793ce2
Show file tree
Hide file tree
Showing 4 changed files with 10 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 @@ -31,7 +31,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 68.4.5
version: 68.4.6
appVersion: v0.79.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 @@ -7141,6 +7141,10 @@ spec:
type: string
type: object
type: object
serviceName:
description: |-
The name of the service used by the underlying StatefulSet(s) as the governing service.
type: string
serviceAccountName:
description: |-
ServiceAccountName is the name of the ServiceAccount to use to run the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8849,6 +8849,10 @@ spec:
type: string
type: object
type: object
serviceName:
description: |-
The name of the service used by the underlying StatefulSet(s) as the governing service.
type: string
serviceAccountName:
description: |-
ServiceAccountName is the name of the ServiceAccount to use to run the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ spec:
configMaps:
{{ toYaml .Values.prometheus.prometheusSpec.configMaps | indent 4 }}
{{- end }}
serviceName: {{ template "kube-prometheus-stack.fullname" . }}-prometheus
serviceAccountName: {{ template "kube-prometheus-stack.prometheus.serviceAccountName" . }}
{{- if .Values.prometheus.prometheusSpec.serviceMonitorSelector }}
serviceMonitorSelector:
Expand Down

0 comments on commit 9793ce2

Please sign in to comment.