Minio helm chart improvements for user and policy creation (#14216)

This commit is contained in:
jescalona-lf
2022-02-14 02:14:18 +01:00
committed by GitHub
parent f10e2254ae
commit b70053090c
8 changed files with 287 additions and 0 deletions
@@ -78,6 +78,10 @@ connectToMinio $scheme
{{ if .Values.users }}
# Create the users
{{- range .Values.users }}
{{- if .existingSecret }}
createUser {{ .accessKey }} $(cat /config/secrets/{{ .accessKey }}) {{ .policy }}
{{ else }}
createUser {{ .accessKey }} {{ .secretKey }} {{ .policy }}
{{- end }}
{{- end }}
{{- end }}