From 82f32ea29902f744d5db783af281f540a828209f Mon Sep 17 00:00:00 2001 From: machine424 Date: Mon, 9 Feb 2026 10:46:36 +0100 Subject: [PATCH] chore: add permissions on endpointslice to Prometheus Role and use serviceDiscoveryRole: EndpointSlice in ServiceMonitors --- manifests/30-monitoring.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/manifests/30-monitoring.yaml b/manifests/30-monitoring.yaml index 6dae51f04f..e63d17fed6 100644 --- a/manifests/30-monitoring.yaml +++ b/manifests/30-monitoring.yaml @@ -58,6 +58,14 @@ rules: - get - list - watch +- apiGroups: + - discovery.k8s.io + resources: + - endpointslices + verbs: + - get + - list + - watch --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding @@ -104,6 +112,7 @@ spec: selector: matchLabels: name: node-tuning-operator + serviceDiscoveryRole: EndpointSlice --- apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule