From cbd999c9e7caf63a25966264adf028db4c17203d Mon Sep 17 00:00:00 2001 From: machine424 Date: Mon, 9 Feb 2026 12:42:16 +0100 Subject: [PATCH] chore: add permissions on endpointslice to Prometheus Role and use serviceDiscoveryRole: EndpointSlice in ServiceMonitors --- manifests/0000_10_config-operator_01_prometheusrole.yaml | 8 ++++++++ manifests/0000_10_config-operator_03_servicemonitor.yaml | 1 + 2 files changed, 9 insertions(+) diff --git a/manifests/0000_10_config-operator_01_prometheusrole.yaml b/manifests/0000_10_config-operator_01_prometheusrole.yaml index ad248e0ba..eb35f05a2 100644 --- a/manifests/0000_10_config-operator_01_prometheusrole.yaml +++ b/manifests/0000_10_config-operator_01_prometheusrole.yaml @@ -20,3 +20,11 @@ rules: - get - list - watch +- apiGroups: + - discovery.k8s.io + resources: + - endpointslices + verbs: + - get + - list + - watch diff --git a/manifests/0000_10_config-operator_03_servicemonitor.yaml b/manifests/0000_10_config-operator_03_servicemonitor.yaml index ef5b094f9..8b6969ffa 100644 --- a/manifests/0000_10_config-operator_03_servicemonitor.yaml +++ b/manifests/0000_10_config-operator_03_servicemonitor.yaml @@ -24,4 +24,5 @@ spec: selector: matchLabels: app: openshift-config-operator + serviceDiscoveryRole: EndpointSlice