From fcb4c207d76f520e1ac2ec752eca17150c1f822a Mon Sep 17 00:00:00 2001 From: Aline Abler Date: Mon, 28 Oct 2024 15:24:07 +0100 Subject: [PATCH] Update appuio:metrics-reader cluster role to be compatible with OpenShift 4.16 --- class/defaults.yml | 6 ++++++ .../appuio-cloud/10_additional_clusterroles.yaml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/class/defaults.yml b/class/defaults.yml index 1883939..0818f5c 100644 --- a/class/defaults.yml +++ b/class/defaults.yml @@ -111,6 +111,12 @@ parameters: resources: [pods] verbs: - get + - apiGroups: + - metrics.k8s.io + resources: + - pods + verbs: + - get monitoring-edit-probe: rules: - apiGroups: ['monitoring.coreos.com'] diff --git a/tests/golden/defaults/appuio-cloud/appuio-cloud/10_additional_clusterroles.yaml b/tests/golden/defaults/appuio-cloud/appuio-cloud/10_additional_clusterroles.yaml index 2fc72ac..6d8e95a 100644 --- a/tests/golden/defaults/appuio-cloud/appuio-cloud/10_additional_clusterroles.yaml +++ b/tests/golden/defaults/appuio-cloud/appuio-cloud/10_additional_clusterroles.yaml @@ -15,6 +15,12 @@ rules: - pods verbs: - get + - apiGroups: + - metrics.k8s.io + resources: + - pods + verbs: + - get --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole