Remove configPathmc config options

This commit is contained in:
Waqar Ahmed 2020-12-09 00:47:27 +05:00
parent 17d83f6bd4
commit 26707b648b
4 changed files with 2 additions and 8 deletions

View File

@ -144,7 +144,6 @@ The following table lists the configurable parameters of the MinIO chart and the
| `accessKey` | Default access key (5 to 20 characters) | random 20 chars | | `accessKey` | Default access key (5 to 20 characters) | random 20 chars |
| `secretKey` | Default secret key (8 to 40 characters) | random 40 chars | | `secretKey` | Default secret key (8 to 40 characters) | random 40 chars |
| `certsPath` | Default certs path location | `/etc/minio/certs` | | `certsPath` | Default certs path location | `/etc/minio/certs` |
| `configPathmc` | Default config file location for MinIO client - mc | `/etc/minio/mc` |
| `mountPath` | Default mount location for persistent drive | `/export` | | `mountPath` | Default mount location for persistent drive | `/export` |
| `bucketRoot` | Directory from where minio should serve buckets. | Value of `.mountPath` | | `bucketRoot` | Directory from where minio should serve buckets. | Value of `.mountPath` |
| `clusterDomain` | domain name of kubernetes cluster where pod is running. | `cluster.local` | | `clusterDomain` | domain name of kubernetes cluster where pod is running. | `cluster.local` |

View File

@ -1,12 +1,8 @@
#!/bin/sh #!/bin/sh
set -e ; # Have script exit in the event of a failed command. set -e ; # Have script exit in the event of a failed command.
{{- if .Values.configPathmc }} MC_CONFIG_DIR="/etc/minio/mc/"
MC_CONFIG_DIR="{{ .Values.configPathmc }}"
MC="/usr/bin/mc --insecure --config-dir ${MC_CONFIG_DIR}" MC="/usr/bin/mc --insecure --config-dir ${MC_CONFIG_DIR}"
{{- else }}
MC="/usr/bin/mc --insecure"
{{- end }}
# connectToMinio # connectToMinio
# Use a check-sleep-check loop to wait for Minio service to be available # Use a check-sleep-check loop to wait for Minio service to be available

View File

@ -51,6 +51,6 @@ spec:
mountPath: /config mountPath: /config
{{- if .Values.tls.enabled }} {{- if .Values.tls.enabled }}
- name: cert-secret-volume-mc - name: cert-secret-volume-mc
mountPath: {{ .Values.configPathmc }}certs mountPath: /etc/minio/mc/certs
{{ end }} {{ end }}
{{- end }} {{- end }}

View File

@ -51,7 +51,6 @@ StatefulSetUpdate:
accessKey: "" accessKey: ""
secretKey: "" secretKey: ""
certsPath: "/etc/minio/certs/" certsPath: "/etc/minio/certs/"
configPathmc: "/etc/minio/mc/"
mountPath: "/export" mountPath: "/export"
## Use existing Secret that store following variables: ## Use existing Secret that store following variables: