From f357f65d04fbb476810d9e4f5405fe0786184655 Mon Sep 17 00:00:00 2001 From: Eric Date: Sun, 20 Feb 2022 23:56:41 +0000 Subject: [PATCH] Allow policy bootstrapping with nil "Resource" (#14359) --- helm/minio/templates/_helper_policy.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/minio/templates/_helper_policy.tpl b/helm/minio/templates/_helper_policy.tpl index 458ccbe9a..83a2e153b 100644 --- a/helm/minio/templates/_helper_policy.tpl +++ b/helm/minio/templates/_helper_policy.tpl @@ -8,10 +8,10 @@ "Effect": "Allow", "Action": [ "{{ $statement.actions | join "\",\n\"" }}" - ], + ]{{ if $statement.resources }}, "Resource": [ "{{ $statement.resources | join "\",\n\"" }}" - ] + ]{{ end }} }{{ if lt $i $statements_length }},{{end }} {{- end }} ]