From 783585681632861ed814ea5d5a5e08c1f79f1a4d Mon Sep 17 00:00:00 2001 From: Danil-Grigorev Date: Tue, 28 Apr 2020 10:35:06 +0200 Subject: [PATCH] Added cluster-reader clusterrole for autoscaling.openshift.io BUG 1796412: cluster-reader is unable to view machine resources --- install/10_cluster_reader_rbac.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 install/10_cluster_reader_rbac.yaml diff --git a/install/10_cluster_reader_rbac.yaml b/install/10_cluster_reader_rbac.yaml new file mode 100644 index 000000000..8f2b47557 --- /dev/null +++ b/install/10_cluster_reader_rbac.yaml @@ -0,0 +1,15 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: cluster-autoscaler-operator:cluster-reader + labels: + rbac.authorization.k8s.io/aggregate-to-cluster-reader: "true" +rules: +- apiGroups: + - autoscaling.openshift.io + resources: + - '*' + verbs: + - get + - list + - watch