From b9774deab6c00ffbbdc570134d2277a919b7e112 Mon Sep 17 00:00:00 2001 From: Mariam Fahmy Date: Mon, 30 Oct 2023 14:17:40 +0200 Subject: [PATCH] fix: add VAP and VAPB to reports controller ClusterRole (#8777) Signed-off-by: Mariam Fahmy --- .../templates/reports-controller/clusterrole.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/charts/kyverno/templates/reports-controller/clusterrole.yaml b/charts/kyverno/templates/reports-controller/clusterrole.yaml index 14010466ca..53d11eeb81 100644 --- a/charts/kyverno/templates/reports-controller/clusterrole.yaml +++ b/charts/kyverno/templates/reports-controller/clusterrole.yaml @@ -58,6 +58,16 @@ rules: - update - watch - deletecollection +{{- if .Values.features.validatingAdmissionPolicyReports.enabled }} + - apiGroups: + - admissionregistration.k8s.io + resources: + - validatingadmissionpolicies + - validatingadmissionpolicybindings + verbs: + - get + - list +{{- end }} - apiGroups: - '' - events.k8s.io