From c8a31ab16a68333a313f1963856525470f529bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Hisse?= Date: Fri, 25 Feb 2022 04:35:34 -0300 Subject: [PATCH] fix: helm chart broken when use generatecontrollerExtraResources (#3302) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: José Hisse --- charts/kyverno/templates/clusterrole.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/charts/kyverno/templates/clusterrole.yaml b/charts/kyverno/templates/clusterrole.yaml index 2ad804c559..6855eb4992 100644 --- a/charts/kyverno/templates/clusterrole.yaml +++ b/charts/kyverno/templates/clusterrole.yaml @@ -129,18 +129,18 @@ rules: - update - patch - delete -{{- if .Values.generatecontrollerExtraResources }} -- apiGroups: - - "*" - resources: - {{- range .Values.generatecontrollerExtraResources }} - - {{ . }} + {{- if .Values.generatecontrollerExtraResources }} + - apiGroups: + - "*" + resources: + {{- range .Values.generatecontrollerExtraResources }} + - {{ . }} + {{- end }} + verbs: + - create + - update + - delete {{- end }} - verbs: - - create - - update - - delete -{{- end }} --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole