Skip to content

Use authorization block and metrics-token secrets in ServiceMonitors#561

Merged
tamalsaha merged 1 commit intomasterfrom
fix-servicemonitor-authorization-metrics-token
Mar 11, 2026
Merged

Use authorization block and metrics-token secrets in ServiceMonitors#561
tamalsaha merged 1 commit intomasterfrom
fix-servicemonitor-authorization-metrics-token

Conversation

@tamalsaha
Copy link
Member

@tamalsaha tamalsaha commented Mar 11, 2026

Summary

  • replace deprecated bearerTokenFile usage with ServiceMonitor authorization credentials blocks
  • add per-chart long-lived ServiceAccount token Secret templates (type: kubernetes.io/service-account-token)
  • use Secret names with the -metrics-token suffix: -metrics-token
  • wire ServiceMonitor credentials to key token in the corresponding metrics token Secret

Why

Prometheus Operator rejects ServiceMonitor specs that use bearerTokenFile. This updates charts to the supported credentials-based auth style and avoids filesystem token references.

Charts Updated

  • stash-community
  • stash-enterprise
  • stash-ui-server

Notes

  • no new template helper added
  • commit is signed off (DCO)

@tamalsaha tamalsaha force-pushed the fix-servicemonitor-authorization-metrics-token branch from b60abed to 650babd Compare March 11, 2026 08:45
@tamalsaha tamalsaha merged commit 31683a4 into master Mar 11, 2026
5 checks passed
@tamalsaha tamalsaha deleted the fix-servicemonitor-authorization-metrics-token branch March 11, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant