Make minio data mount path configurable

This commit is contained in:
M. Rehan
2022-08-08 21:55:42 +05:00
parent a44862c5e0
commit bc48669cdd
44 changed files with 6 additions and 8 deletions

View File

@@ -16,4 +16,4 @@ sources:
- https://github.com/minio/minio
- https://github.com/minio/charts
upstream_version: 8.0.5
version: 1.6.39
version: 1.6.40

View File

@@ -211,9 +211,8 @@ questions:
description: "Path where the volume will be mounted inside the pod"
schema:
type: path
hidden: true
editable: false
default: "/export"
immutable: true
- variable: hostPathEnabled
label: "Enable Host Path for Minio Data Volume"
schema:

View File

@@ -60,7 +60,7 @@ Retrieve command for minio application
{{- if .Values.distributedMode -}}
{{- cat $arg (join " " (concat (.Values.distributedIps | default list) (.Values.extraArgs | default list))) -}}
{{- else -}}
{{- cat $arg ((concat (list (printf "--address ':%d'" (.Values.service.nodePort | int))) (list "/export") (.Values.extraArgs | default list)) | join " ") -}}
{{- cat $arg ((concat (list (printf "--address ':%d'" (.Values.service.nodePort | int))) (list (printf "%s" .Values.appVolumeMounts.export.mountPath)) (.Values.extraArgs | default list)) | join " ") -}}
{{- end -}}
{{- end -}}

View File

@@ -16,4 +16,4 @@ sources:
- https://github.com/minio/minio
- https://github.com/minio/charts
upstream_version: 8.0.5
version: 1.6.39
version: 1.6.40

View File

@@ -211,9 +211,8 @@ questions:
description: "Path where the volume will be mounted inside the pod"
schema:
type: path
hidden: true
editable: false
default: "/export"
immutable: true
- variable: hostPathEnabled
label: "Enable Host Path for Minio Data Volume"
schema:

View File

@@ -60,7 +60,7 @@ Retrieve command for minio application
{{- if .Values.distributedMode -}}
{{- cat $arg (join " " (concat (.Values.distributedIps | default list) (.Values.extraArgs | default list))) -}}
{{- else -}}
{{- cat $arg ((concat (list (printf "--address ':%d'" (.Values.service.nodePort | int))) (list "/export") (.Values.extraArgs | default list)) | join " ") -}}
{{- cat $arg ((concat (list (printf "--address ':%d'" (.Values.service.nodePort | int))) (list (printf "%s" .Values.appVolumeMounts.export.mountPath)) (.Values.extraArgs | default list)) | join " ") -}}
{{- end -}}
{{- end -}}