diff --git a/helm/minio/templates/_helper_policy.tpl b/helm/minio/templates/_helper_policy.tpl index f2150530b..8be998e5d 100644 --- a/helm/minio/templates/_helper_policy.tpl +++ b/helm/minio/templates/_helper_policy.tpl @@ -5,7 +5,7 @@ "Statement": [ {{- range $i, $statement := .statements }} { - "Effect": "Allow", + "Effect": "{{ $statement.effect | default "Allow" }}", "Action": [ "{{ $statement.actions | join "\",\n\"" }}" ]{{ if $statement.resources }}, @@ -21,7 +21,7 @@ {{- range $operator,$object := $v }} "{{ $operator }}": { {{ $object }} }{{- if lt $k $condition_len }},{{- end }} {{- end }}{{- end }} - }{{- end }} + }{{- end }} }{{ if lt $i $statements_length }},{{end }} {{- end }} ] diff --git a/helm/minio/values.yaml b/helm/minio/values.yaml index e7a8acc44..55c7bec98 100644 --- a/helm/minio/values.yaml +++ b/helm/minio/values.yaml @@ -273,7 +273,8 @@ policies: [] ## example. # - name: writeexamplepolicy # statements: -# - resources: +# - effect: Allow # this is the default +# resources: # - 'arn:aws:s3:::example*/*' # actions: # - "s3:AbortMultipartUpload"