From 9435bf19f3d88550905cb120f345d3052fa69b01 Mon Sep 17 00:00:00 2001 From: machine424 Date: Fri, 23 Jan 2026 11:36:45 +0100 Subject: [PATCH] chore: add permissions on endpointslice to Prometheus Role and use serviceDiscoveryRole: EndpointSlice in ServiceMonitors --- ...000_90_cluster-version-operator_00_prometheusrole.yaml | 8 ++++++++ ...000_90_cluster-version-operator_02_servicemonitor.yaml | 1 + 2 files changed, 9 insertions(+) diff --git a/install/0000_90_cluster-version-operator_00_prometheusrole.yaml b/install/0000_90_cluster-version-operator_00_prometheusrole.yaml index 6ba0cbe5bb..6faa5373fa 100644 --- a/install/0000_90_cluster-version-operator_00_prometheusrole.yaml +++ b/install/0000_90_cluster-version-operator_00_prometheusrole.yaml @@ -17,3 +17,11 @@ rules: - get - list - watch +- apiGroups: + - discovery.k8s.io + resources: + - endpointslices + verbs: + - get + - list + - watch diff --git a/install/0000_90_cluster-version-operator_02_servicemonitor.yaml b/install/0000_90_cluster-version-operator_02_servicemonitor.yaml index d4ceb3e9b0..3f17e954ed 100644 --- a/install/0000_90_cluster-version-operator_02_servicemonitor.yaml +++ b/install/0000_90_cluster-version-operator_02_servicemonitor.yaml @@ -24,6 +24,7 @@ spec: selector: matchLabels: k8s-app: cluster-version-operator + serviceDiscoveryRole: EndpointSlice --- apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule