Skip to content

Commit 32b6ae5

Browse files
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

File tree

charts/amazon-cloudwatch-observability/templates/target-allocator-clusterrole.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ rules:
2727
- apiGroups: [ "monitoring.coreos.com"]
2828
resources: ["podmonitors", "servicemonitors"]
2929
verbs: ["get", "list", "watch"]
30+
# TA watches the SM/PM CRDs to start/stop informers as they appear or disappear (read-only).
31+
- apiGroups: [ "apiextensions.k8s.io" ]
32+
resources: ["customresourcedefinitions"]
33+
verbs: ["get", "list", "watch"]
3034
{{- end }}
3135
{{- end }}
3236
---

0 commit comments

Comments
 (0)