From 86039a3b32f0e7f1cc5fff64d5256ca76e92ac98 Mon Sep 17 00:00:00 2001 From: Yannic Nevado Hidalgo Date: Thu, 7 Sep 2023 21:43:28 +0200 Subject: [PATCH] feature(charts): optionally set resourceNames on extraResources for cleanup-controller (#8307) Signed-off-by: yanehi Signed-off-by: Yannic Nevado Hidalgo Co-authored-by: Mariam Fahmy --- .../templates/cleanup-controller/clusterrole.yaml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/charts/kyverno/templates/cleanup-controller/clusterrole.yaml b/charts/kyverno/templates/cleanup-controller/clusterrole.yaml index 5cb51ab8059b..3ac267a53720 100644 --- a/charts/kyverno/templates/cleanup-controller/clusterrole.yaml +++ b/charts/kyverno/templates/cleanup-controller/clusterrole.yaml @@ -88,14 +88,7 @@ metadata: labels: {{- include "kyverno.cleanup-controller.labels" $ | nindent 4 }} rules: - {{- range . }} - - apiGroups: - {{- toYaml .apiGroups | nindent 6 }} - resources: - {{- toYaml .resources | nindent 6 }} - verbs: - {{- toYaml .verbs | nindent 6 }} - {{- end }} + {{- toYaml . | nindent 2 }} {{- end }} {{- end }} {{- end }} \ No newline at end of file