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