From 0f95817746bbc2019a6c45a1be15f3ee39f4913e Mon Sep 17 00:00:00 2001 From: Amaury Van Bemten Date: Tue, 8 Dec 2020 13:35:26 +0100 Subject: [PATCH] add permission to list namespaces for the topologyspread constraint strategy --- charts/descheduler/templates/clusterrole.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/descheduler/templates/clusterrole.yaml b/charts/descheduler/templates/clusterrole.yaml index 174d24a79..cf6946de8 100644 --- a/charts/descheduler/templates/clusterrole.yaml +++ b/charts/descheduler/templates/clusterrole.yaml @@ -12,6 +12,9 @@ rules: - apiGroups: [""] resources: ["nodes"] verbs: ["get", "watch", "list"] +- apiGroups: [""] + resources: ["namespaces"] + verbs: ["get", "list"] - apiGroups: [""] resources: ["pods"] verbs: ["get", "watch", "list", "delete"]