diff --git a/test/minio/1.4.0/templates/_helpers.tpl b/test/minio/1.4.0/templates/_helpers.tpl index a08646805b..55b50755aa 100644 --- a/test/minio/1.4.0/templates/_helpers.tpl +++ b/test/minio/1.4.0/templates/_helpers.tpl @@ -58,8 +58,20 @@ Retrieve command for minio application {{- define "minio.commandArgs" -}} {{- $arg := "/usr/bin/docker-entrypoint.sh minio -S /etc/minio/certs server --console-address=':9001'" -}} {{- if .Values.distributedMode -}} -{{- printf "%s %s" $arg ((concat (.Values.distributedIps | default list) (.Values.extraArgs | default list)) | join " ") -}} +{{- cat $arg (join " " (concat (.Values.distributedIps | default list) (.Values.extraArgs | default list))) -}} {{- else -}} -{{- printf "%s %s" $arg ((concat (list "/export") (.Values.extraArgs | default list)) | join " ") -}} +{{- cat $arg ((concat (list "/export") (.Values.extraArgs | default list)) | join " ") -}} +{{- end -}} +{{- end -}} + + +{{/* +Enable host networking +*/}} +{{- define "minio.hostNetworking" -}} +{{- if .Values.distributedMode -}} +{{- print "true" -}} +{{- else -}} +{{- print "false" -}} {{- end -}} {{- end -}} diff --git a/test/minio/1.4.0/templates/deployment.yaml b/test/minio/1.4.0/templates/deployment.yaml index 1422b0dc2b..e4534846ff 100644 --- a/test/minio/1.4.0/templates/deployment.yaml +++ b/test/minio/1.4.0/templates/deployment.yaml @@ -7,6 +7,8 @@ metadata: chart: {{ template "common.names.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} + annotations: + rollme: {{ randAlphaNum 5 | quote }} spec: replicas: {{ (default 1 .Values.replicas) }} strategy: @@ -25,6 +27,7 @@ spec: annotations: {{ include "common.annotations" . | nindent 8 }} spec: serviceAccountName: {{ include "common.names.serviceAccountName" . | quote }} + hostNetwork: {{ include "minio.hostNetworking" . }} containers: - name: {{ .Chart.Name }} {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} diff --git a/test/minio/1.4.0/test_values.yaml b/test/minio/1.4.0/test_values.yaml index ede0a52252..e9d9cad82e 100644 --- a/test/minio/1.4.0/test_values.yaml +++ b/test/minio/1.4.0/test_values.yaml @@ -18,4 +18,4 @@ service: updateStrategy: RollingUpdate distributedMode: false distributedIps: [] -extraAppVolumeMounts: [] \ No newline at end of file +extraAppVolumeMounts: []