From 2598d1cb337a31cc5d97b0e1c0b20bf8d2ca2c30 Mon Sep 17 00:00:00 2001 From: Willi Eggeling Date: Thu, 19 Sep 2019 14:27:00 +0200 Subject: [PATCH] [stable/minio] added option for additional args (#17108) added option to pass additional command line arguments to the minio binary fixes #17075 Signed-off-by: Willi Eggeling --- stable/minio/Chart.yaml | 2 +- stable/minio/README.md | 1 + stable/minio/templates/deployment.yaml | 4 ++++ stable/minio/templates/statefulset.yaml | 4 ++++ stable/minio/values.yaml | 3 +++ 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/stable/minio/Chart.yaml b/stable/minio/Chart.yaml index f583ac6e86..5dce827337 100755 --- a/stable/minio/Chart.yaml +++ b/stable/minio/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: MinIO is a high performance distributed object storage server, designed for large-scale private cloud infrastructure. name: minio -version: 2.5.14 +version: 2.5.15 appVersion: RELEASE.2019-08-07T01-59-21Z keywords: - storage diff --git a/stable/minio/README.md b/stable/minio/README.md index 3fd844b175..74c561c4a7 100755 --- a/stable/minio/README.md +++ b/stable/minio/README.md @@ -103,6 +103,7 @@ The following table lists the configurable parameters of the MinIO chart and the | `ingress.hosts` | Ingress accepted hostnames | `[]` | | `ingress.tls` | Ingress TLS configuration | `[]` | | `mode` | MinIO server mode (`standalone` or `distributed`) | `standalone` | +| `extraArgs` | Additional command line arguments to pass to the MinIO server | `[]` | | `replicas` | Number of nodes (applicable only for MinIO distributed mode). Should be 4 <= x <= 32 | `4` | | `existingSecret` | Name of existing secret with access and secret key. | `""` | | `accessKey` | Default access key (5 to 20 characters) | `AKIAIOSFODNN7EXAMPLE` | diff --git a/stable/minio/templates/deployment.yaml b/stable/minio/templates/deployment.yaml index 1a001fa691..1de9df8913 100644 --- a/stable/minio/templates/deployment.yaml +++ b/stable/minio/templates/deployment.yaml @@ -92,6 +92,10 @@ spec: {{- end }} {{- end }} {{- end }} + {{- if .Values.extraArgs }} + args: +{{ toYaml .Values.extraArgs | indent 12 }} + {{- end }} volumeMounts: {{- if and .Values.persistence.enabled (not .Values.gcsgateway.enabled) (not .Values.azuregateway.enabled) (not .Values.s3gateway.enabled) }} - name: export diff --git a/stable/minio/templates/statefulset.yaml b/stable/minio/templates/statefulset.yaml index 1f2005f065..f8a213d31b 100644 --- a/stable/minio/templates/statefulset.yaml +++ b/stable/minio/templates/statefulset.yaml @@ -74,6 +74,10 @@ spec: http://{{ template `minio.fullname` $ }}-{{ $i }}.{{ template `minio.fullname` $ }}-svc.{{ $.Release.Namespace }}.svc.{{ $.Values.clusterDomain }}{{ $.Values.mountPath }} {{- end }}" ] {{ end }} + {{- if .Values.extraArgs }} + args: +{{ toYaml .Values.extraArgs | indent 12 }} + {{- end }} volumeMounts: {{- if .Values.persistence.enabled }} - name: export diff --git a/stable/minio/values.yaml b/stable/minio/values.yaml index 03f38e76f0..b6ca617280 100755 --- a/stable/minio/values.yaml +++ b/stable/minio/values.yaml @@ -22,6 +22,9 @@ mcImage: ## mode: standalone +## Additional arguments to pass to minio binary +extraArgs: [] + ## Update strategy for Deployments DeploymentUpdate: type: RollingUpdate