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 }} ]