Commit 32b6ae5
committed
feat(observability): grant TA CRD watch RBAC under scraping gate
The Target Allocator watches the ServiceMonitor/PodMonitor CRDs to start/stop
informers as CRDs appear or disappear. Under the otelContainerInsights scraping
path the TA ClusterRole granted list/watch on the monitors but not on
customresourcedefinitions, so the operator-side CRD watch was denied, the CRD
gate never opened, and SM/PM discovery failed quietly. Add the read-only
get/list/watch grant on customresourcedefinitions beside the monitoring.coreos.com
rule under the same $otelCIScrape gate. Comment-only render change; gated off by
default.1 parent 48e8330 commit 32b6ae5
1 file changed
Lines changed: 4 additions & 0 deletions
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| |||
0 commit comments