From 27b97dffdb393d6c9e7f65acb673547daa3bf38e Mon Sep 17 00:00:00 2001 From: Philippe Granger Date: Fri, 23 Feb 2018 14:12:44 -0500 Subject: [PATCH] =?UTF-8?q?Add=20azuregateway.enabled=20value=20to=20stabl?= =?UTF-8?q?e/minio=20chart=20to=20enable=20azure=20=E2=80=A6=20(#3850)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add azuregateway.enabled value to stable/minio chart to enable azure gateway * Change chart version. --- stable/minio/Chart.yaml | 2 +- stable/minio/README.md | 3 ++- stable/minio/templates/minio_deployment.yaml | 4 ++++ stable/minio/values.yaml | 6 ++++++ 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/stable/minio/Chart.yaml b/stable/minio/Chart.yaml index 9e6c160c59..c50b35c022 100755 --- a/stable/minio/Chart.yaml +++ b/stable/minio/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Distributed object storage server built for cloud applications and devops. name: minio -version: 0.5.3 +version: 0.5.4 keywords: - storage - object-storage diff --git a/stable/minio/README.md b/stable/minio/README.md index 796457ef9e..c232e66270 100644 --- a/stable/minio/README.md +++ b/stable/minio/README.md @@ -98,7 +98,8 @@ The following tables lists the configurable parameters of the Minio chart and th | `defaultBucket.enabled` | If set to true, a bucket will be created after minio install | `false` | | `defaultBucket.name` | Bucket name | `bucket` | | `defaultBucket.policy` | Bucket policy | `none` | -| `defaultBucket.purge` | Purge the bucket if already exists | `false` | +| `defaultBucket.purge` | Purge the bucket if already exists | `false` | +| `azuregateway.enabled` | Use minio as an [azure gateway](https://docs.minio.io/docs/minio-gateway-for-azure)| `false` | Some of the parameters above map to the env variables defined in the [Minio DockerHub image](https://hub.docker.com/r/minio/minio/). diff --git a/stable/minio/templates/minio_deployment.yaml b/stable/minio/templates/minio_deployment.yaml index 31984de9f5..776e24814c 100644 --- a/stable/minio/templates/minio_deployment.yaml +++ b/stable/minio/templates/minio_deployment.yaml @@ -60,11 +60,15 @@ spec: - name: minio image: {{ .Values.image }}:{{ .Values.imageTag }} imagePullPolicy: {{ .Values.imagePullPolicy }} + {{- if .Values.azuregateway.enabled }} + args: ["gateway", "azure"] + {{- else }} {{- if .Values.configPath }} args: ["-C", "{{ .Values.configPath }}", "server", "{{ .Values.mountPath }}"] {{- else }} args: ["server", "{{ .Values.mountPath }}"] {{- end }} + {{- end }} volumeMounts: - name: export mountPath: {{ .Values.mountPath }} diff --git a/stable/minio/values.yaml b/stable/minio/values.yaml index 3950ed5800..831aeef5ab 100644 --- a/stable/minio/values.yaml +++ b/stable/minio/values.yaml @@ -82,6 +82,12 @@ defaultBucket: ## Purge if bucket exists already purge: false +## Use minio as an azure blob gateway, you should disable data persistence so no volume claim are created. +## https://docs.minio.io/docs/minio-gateway-for-azure +azuregateway: + enabled: false + + ## https://docs.minio.io/docs/minio-bucket-notification-guide ## minioConfig: