Remove unnecessary extra args function

This commit is contained in:
Waqar Ahmed committed 2021-02-02 15:14:44 +05:00
1 parent f5b7e4e606
commit 8e0915ab5a
3 files changed
+2 -12

No files matched your search

-10
View File
@@ -4,13 +4,3 @@ Determine secret name.
{{- define "minio.secretName" -}}
{{- include "common.names.fullname" . -}}
{{- end -}}
{{/*
Properly format optional additional arguments to Minio binary
*/}}
{{- define "minio.extraArgs" -}}
{{- range .Values.extraArgs -}}
{{ " " }}{{ . }}
{{- end -}}
{{- end -}}
+1 -1
View File
@@ -23,7 +23,7 @@ spec:
command:
- "/bin/sh"
- "-ce"
- "/usr/bin/docker-entrypoint.sh minio server /export {{- template "minio.extraArgs" . }}"
- "/usr/bin/docker-entrypoint.sh minio server /export {{ (.Values.extraArgs | default list) | join " " }}"
volumeMounts:
- name: export
mountPath: /export
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
kind: Secret
metadata:
name: {{ template "minio.secretName" . }}
labels: {{ include "common.labels" | nindent 4 }}
labels: {{ include "common.labels" . | nindent 4 }}
type: Opaque
data:
accesskey: {{ if .Values.accessKey }}{{ .Values.accessKey | toString | b64enc | quote }}{{ else }}{{ randAlphaNum 20 | b64enc | quote }}{{ end }}