mirror of
https://github.com/truenas/charts.git
synced 2026-11-14 06:48:09 +00:00
Remove unnecessary extra args function
This commit is contained in:
1 parent
f5b7e4e606
commit
8e0915ab5a
3 files changed
+2
-12
No files matched your search
@@ -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 -}}
|
||||
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in new issue
Block a user