From ea3e48396ac00c1a36e058a0ef46b8a034a126e3 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Fri, 3 Jan 2025 12:26:02 +0100 Subject: [PATCH] charts: add missing permission for policy at ClusterRole fixes 1595 --- 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 165ea4dfd1..8ea75c92ef 100644 --- a/charts/descheduler/templates/clusterrole.yaml +++ b/charts/descheduler/templates/clusterrole.yaml @@ -24,6 +24,9 @@ rules: - apiGroups: ["scheduling.k8s.io"] resources: ["priorityclasses"] verbs: ["get", "watch", "list"] +- apiGroups: ["policy"] + resources: ["poddisruptionbudgets"] + verbs: ["get", "watch", "list"] {{- if .Values.leaderElection.enabled }} - apiGroups: ["coordination.k8s.io"] resources: ["leases"]