From bd8b16cda7d8d9ebad1fe1b4433c145cc06eaf9d Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Sat, 27 Apr 2024 15:44:26 +0200 Subject: [PATCH] fix(common-RBAC): remove RBAC requirements that are not requirements --- library/common/templates/lib/rbac/_rules.tpl | 6 ------ 1 file changed, 6 deletions(-) diff --git a/library/common/templates/lib/rbac/_rules.tpl b/library/common/templates/lib/rbac/_rules.tpl index 44fb9ff2..9b330388 100644 --- a/library/common/templates/lib/rbac/_rules.tpl +++ b/library/common/templates/lib/rbac/_rules.tpl @@ -14,12 +14,6 @@ objectData: The object data to be used to render the RBAC. {{- end -}} {{- range $objectData.rules -}} - {{- if not .apiGroups -}} - {{- fail "RBAC - Expected non-empty [rbac.rules.apiGroups]" -}} - {{- end -}} - {{- if not .resources -}} - {{- fail "RBAC - Expected non-empty [rbac.rules.resources]" -}} - {{- end -}} {{- if not .verbs -}} {{- fail "RBAC - Expected non-empty [rbac.rules.verbs]" -}} {{- end -}}