diff --git a/bindata/assets/openshift-controller-manager/route-controller-manager-servicemonitor-role.yaml b/bindata/assets/openshift-controller-manager/route-controller-manager-servicemonitor-role.yaml index 81f6ce34e..62678428d 100644 --- a/bindata/assets/openshift-controller-manager/route-controller-manager-servicemonitor-role.yaml +++ b/bindata/assets/openshift-controller-manager/route-controller-manager-servicemonitor-role.yaml @@ -14,3 +14,11 @@ rules: - get - list - watch +- apiGroups: + - discovery.k8s.io + resources: + - endpointslices + verbs: + - get + - list + - watch diff --git a/bindata/assets/openshift-controller-manager/servicemonitor-role.yaml b/bindata/assets/openshift-controller-manager/servicemonitor-role.yaml index 743346463..b8ff4f8f1 100644 --- a/bindata/assets/openshift-controller-manager/servicemonitor-role.yaml +++ b/bindata/assets/openshift-controller-manager/servicemonitor-role.yaml @@ -14,3 +14,11 @@ rules: - get - list - watch +- apiGroups: + - discovery.k8s.io + resources: + - endpointslices + verbs: + - get + - list + - watch diff --git a/manifests/0000_90_openshift-controller-manager-operator_00_prometheusrole.yaml b/manifests/0000_90_openshift-controller-manager-operator_00_prometheusrole.yaml index d159875dc..bf6c8e8d3 100644 --- a/manifests/0000_90_openshift-controller-manager-operator_00_prometheusrole.yaml +++ b/manifests/0000_90_openshift-controller-manager-operator_00_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_90_openshift-controller-manager-operator_02_servicemonitor.yaml b/manifests/0000_90_openshift-controller-manager-operator_02_servicemonitor.yaml index a7ac00543..b7549e203 100644 --- a/manifests/0000_90_openshift-controller-manager-operator_02_servicemonitor.yaml +++ b/manifests/0000_90_openshift-controller-manager-operator_02_servicemonitor.yaml @@ -27,3 +27,4 @@ spec: selector: matchLabels: app: openshift-controller-manager-operator + serviceDiscoveryRole: EndpointSlice diff --git a/manifests/0000_90_openshift-controller-manager-operator_03_operand-servicemonitor.yaml b/manifests/0000_90_openshift-controller-manager-operator_03_operand-servicemonitor.yaml index 9ce96a9fb..5abfd9dca 100644 --- a/manifests/0000_90_openshift-controller-manager-operator_03_operand-servicemonitor.yaml +++ b/manifests/0000_90_openshift-controller-manager-operator_03_operand-servicemonitor.yaml @@ -64,3 +64,4 @@ spec: selector: matchLabels: prometheus: openshift-controller-manager + serviceDiscoveryRole: EndpointSlice diff --git a/manifests/0000_90_openshift-controller-manager-operator_04_operand-route-controller-servicemonitor.yaml b/manifests/0000_90_openshift-controller-manager-operator_04_operand-route-controller-servicemonitor.yaml index a0c1c2f7a..b6dafa3ca 100644 --- a/manifests/0000_90_openshift-controller-manager-operator_04_operand-route-controller-servicemonitor.yaml +++ b/manifests/0000_90_openshift-controller-manager-operator_04_operand-route-controller-servicemonitor.yaml @@ -64,3 +64,4 @@ spec: selector: matchLabels: prometheus: route-controller-manager + serviceDiscoveryRole: EndpointSlice