From 214f4f7a2b10e8deb811f73f72a617fc57c35f96 Mon Sep 17 00:00:00 2001 From: machine424 Date: Fri, 23 Jan 2026 09:55:17 +0100 Subject: [PATCH] chore: add permissions on endpointslice to Prometheus Role and use serviceDiscoveryRole: EndpointSlice in ServiceMonitors --- ...00_90_cloud-credential-operator_00_prometheusrole.yaml | 8 ++++++++ ...00_90_cloud-credential-operator_02_servicemonitor.yaml | 1 + 2 files changed, 9 insertions(+) diff --git a/manifests/0000_90_cloud-credential-operator_00_prometheusrole.yaml b/manifests/0000_90_cloud-credential-operator_00_prometheusrole.yaml index c8a0652a91..4b12a67a62 100644 --- a/manifests/0000_90_cloud-credential-operator_00_prometheusrole.yaml +++ b/manifests/0000_90_cloud-credential-operator_00_prometheusrole.yaml @@ -18,3 +18,11 @@ rules: - get - list - watch +- apiGroups: + - discovery.k8s.io + resources: + - endpointslices + verbs: + - get + - list + - watch diff --git a/manifests/0000_90_cloud-credential-operator_02_servicemonitor.yaml b/manifests/0000_90_cloud-credential-operator_02_servicemonitor.yaml index cf1c003916..9254801099 100644 --- a/manifests/0000_90_cloud-credential-operator_02_servicemonitor.yaml +++ b/manifests/0000_90_cloud-credential-operator_02_servicemonitor.yaml @@ -20,3 +20,4 @@ spec: matchNames: - openshift-cloud-credential-operator selector: {} + serviceDiscoveryRole: EndpointSlice