Add clusterrole for policyviolation
@@ -469,6 +469,16 @@ metadata:
name: kyverno-service-account
namespace: kyverno
---
+apiVersion: rbac.authorization.k8s.io/v1beta1
+kind: ClusterRole
+metadata:
+ name: policyviolation
+rules:
+- apiGroups: ["kyverno.io"]
+ resources:
+ - policyviolations
+ verbs: ["get", "list", "watch"]
+---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
