diff --git a/charts/kyverno/templates/admission-controller/clusterrole.yaml b/charts/kyverno/templates/admission-controller/clusterrole.yaml index 69cc6e5b56..75e8862cbc 100644 --- a/charts/kyverno/templates/admission-controller/clusterrole.yaml +++ b/charts/kyverno/templates/admission-controller/clusterrole.yaml @@ -22,6 +22,10 @@ rules: resources: - mutatingwebhookconfigurations - validatingwebhookconfigurations + {{- if .Values.features.generateValidatingAdmissionPolicy.enabled }} + - validatingadmissionpolicies + - validatingadmissionpolicybindings + {{- end }} verbs: - create - delete