Skip to content

Commit

Permalink
metrics.servicemonitor bearerTokenSecret -> authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSp committed Dec 23, 2024
1 parent 51aa45b commit 8c0def2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
2 changes: 1 addition & 1 deletion charts/home-assistant/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.7.12
version: 0.7.13

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
12 changes: 1 addition & 11 deletions charts/home-assistant/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,5 @@ spec:
scrapeTimeout: {{ . }}
{{- end }}
path: /api/prometheus
{{- with .Values.metrics.serviceMonitor.bearerTokenFile }}
bearerTokenFile: {{ . }}
{{- end }}
{{- with .Values.metrics.serviceMonitor.bearerTokenSecret }}
bearerTokenSecret:
name: {{ .name }}
key: {{ .key }}
{{- with .optional }}
optional: {{ . }}
{{- end }}
{{- end }}
authorization: {{ .Values.metrics.serviceMonitor.authorization }}
{{- end }}
8 changes: 2 additions & 6 deletions charts/home-assistant/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,8 @@ metrics:
interval: 1m
scrapeTimeout: 30s
labels: {}
## See https://www.home-assistant.io/docs/authentication/ for where to find
## long lived access token creation under your account profile, which is
## needed to monitor Home Assistant
# bearerTokenSecret:
# name: ""
# key: ""
authorization:
credentials: { } # see https://prometheus-operator.dev/docs/api-reference/api/#monitoring.coreos.com/v1.SafeAuthorization

# -- Enable and configure Prometheus Rules for the chart under this key.
# @default -- See values.yaml
Expand Down

0 comments on commit 8c0def2

Please sign in to comment.