|
|
@@ -102,31 +102,6 @@ Properly format optional additional arguments to Minio binary
|
|
|
{{- end -}}
|
|
|
{{- end -}}
|
|
|
|
|
|
-{{/*
|
|
|
-Return the proper Docker Image Registry Secret Names
|
|
|
-*/}}
|
|
|
-{{- define "minio.imagePullSecrets" -}}
|
|
|
-{{/*
|
|
|
-Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
|
|
-but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
|
|
-Also, we can not use a single if because lazy evaluation is not an option
|
|
|
-*/}}
|
|
|
-{{- if .Values.global }}
|
|
|
-{{- if .Values.global.imagePullSecrets }}
|
|
|
-imagePullSecrets:
|
|
|
-{{- range .Values.global.imagePullSecrets }}
|
|
|
- - name: {{ . }}
|
|
|
-{{- end }}
|
|
|
-{{- else if .Values.imagePullSecrets }}
|
|
|
-imagePullSecrets:
|
|
|
- {{ toYaml .Values.imagePullSecrets }}
|
|
|
-{{- end -}}
|
|
|
-{{- else if .Values.imagePullSecrets }}
|
|
|
-imagePullSecrets:
|
|
|
- {{ toYaml .Values.imagePullSecrets }}
|
|
|
-{{- end -}}
|
|
|
-{{- end -}}
|
|
|
-
|
|
|
{{/*
|
|
|
Formats volumeMount for Minio tls keys and trusted certs
|
|
|
*/}}
|