Commit ef3715b
committed
fix(observability): gate needsCR on targetAllocator enabled
$needsCR granted the monitoring.coreos.com SM/PM read rule whenever any agent
had prometheusCR.enabled, even if that agent's targetAllocator was disabled, so
a stale prometheusCR.enabled over-granted. Mirror $needsTA by also requiring
targetAllocator.enabled, keeping the ClusterRole least-privilege. The otelCI
scrape path ($otelCIScrape) still grants it as before.1 parent e032f1a commit ef3715b
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments