bjw-s / helm-charts

A collection of Helm charts
https://bjw-s.github.io/helm-charts/
Apache License 2.0
524 stars 98 forks source link

Support secrets for servicemonitor in app-template #300

Closed runningman84 closed 1 month ago

runningman84 commented 3 months ago

Details

Describe the solution you'd like:

I would like to set these options for the serviceMonitor object:

BasicAuth bearerTokenFile bearerTokenSecret

Anything else you would like to add:

This allows us to access things like the homeassistant api which needs a bearerTokenFile for auth.

Additional Information:

bjw-s commented 3 months ago

Hi! Sorry it took me a while to get back to you on this. I was just starting work to try and implement this, but as far as I am able to tell from the docs, these fields are not supported on the serviceMonitor resource? -

runningman84 commented 3 months ago

hmm how did the old chart work in that case? https://github.com/k8s-at-home/charts/blob/master/charts/stable/home-assistant/templates/servicemonitor.yaml

bjw-s commented 3 months ago

Ooohhh, it's on the endpoints... I was looking in the wrong place. The endpoints are passed through 1:1 into the serviceMonitor, so you should be able to set those values as you need them