Unverified Commit 5cd292fb authored by Josh Cox's avatar Josh Cox Committed by GitHub

NAS-111810 / 21.08 / Fixes #116 by swapping MINIO_ACCESS_KEY and MINIO_SECRET_KEY (#117)

* Fixes #116 by swapping MINIO_ACCESS_KEY and MINIO_SECRET_KEY with MINIO_ROOT_USER and MINIO_ROOT_PASSWORD
Signed-off-by: default avatarJosh Cox <josh@webhosting.coop>

* Removing default_values.yaml as per request
Signed-off-by: default avatarJosh Cox <josh@webhosting.coop>

* 1.3.12
Signed-off-by: default avatarJosh Cox <josh@webhosting.coop>

* Moving test
parent db6b0da9
...@@ -16,4 +16,4 @@ sources: ...@@ -16,4 +16,4 @@ sources:
- https://github.com/minio/minio - https://github.com/minio/minio
- https://github.com/minio/charts - https://github.com/minio/charts
upstream_version: 8.0.5 upstream_version: 8.0.5
version: 1.3.11 version: 1.3.12
...@@ -73,9 +73,9 @@ questions: ...@@ -73,9 +73,9 @@ questions:
type: string type: string
- variable: accessKey - variable: accessKey
label: "Access Key" label: "Root User"
group: "Minio Configuration" group: "Minio Configuration"
description: "Enter the S3 access ID" description: "Enter the S3 Root User"
schema: schema:
type: string type: string
private: true private: true
...@@ -84,9 +84,9 @@ questions: ...@@ -84,9 +84,9 @@ questions:
max_length: 20 max_length: 20
- variable: secretKey - variable: secretKey
label: "Secret Key" label: "Root Password"
group: "Minio Configuration" group: "Minio Configuration"
description: "Enter the S3 secret access key" description: "Enter the S3 Root Password"
schema: schema:
type: string type: string
private: true private: true
......
...@@ -46,8 +46,8 @@ spec: ...@@ -46,8 +46,8 @@ spec:
{{ $envList = mustAppend $envList (dict "name" "MINIO_BROWSER_REDIRECT_URL" "value" (printf "%s://%s:%d" (include "minio.scheme" .) .Values.minioDomain (.Values.service.consolePort | int))) }} {{ $envList = mustAppend $envList (dict "name" "MINIO_BROWSER_REDIRECT_URL" "value" (printf "%s://%s:%d" (include "minio.scheme" .) .Values.minioDomain (.Values.service.consolePort | int))) }}
{{ $envList = mustAppend $envList (dict "name" "MINIO_SERVER_URL" "value" (printf "%s://%s:%d" (include "minio.scheme" .) .Values.minioDomain (.Values.service.nodePort | int))) }} {{ $envList = mustAppend $envList (dict "name" "MINIO_SERVER_URL" "value" (printf "%s://%s:%d" (include "minio.scheme" .) .Values.minioDomain (.Values.service.nodePort | int))) }}
{{ end }} {{ end }}
{{ $envList = mustAppend $envList (dict "name" "MINIO_ACCESS_KEY" "valueFromSecret" true "secretName" $secretName "secretKey" "accesskey") }} {{ $envList = mustAppend $envList (dict "name" "MINIO_ROOT_USER" "valueFromSecret" true "secretName" $secretName "secretKey" "accesskey") }}
{{ $envList = mustAppend $envList (dict "name" "MINIO_SECRET_KEY" "valueFromSecret" true "secretName" $secretName "secretKey" "secretkey") }} {{ $envList = mustAppend $envList (dict "name" "MINIO_ROOT_PASSWORD" "valueFromSecret" true "secretName" $secretName "secretKey" "secretkey") }}
{{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }}
{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} {{ include "common.networking.dnsConfiguration" .Values | nindent 6 }}
{{ include "common.storage.allAppVolumes" .Values | nindent 6 }} {{ include "common.storage.allAppVolumes" .Values | nindent 6 }}
......
## Set default image, imageTag, and imagePullPolicy. mode is used to indicate the
##
image:
repository: minio/minio
tag: RELEASE.2020-11-19T23-48-16Z
pullPolicy: IfNotPresent
## Additional arguments to pass to minio binary
extraArgs: []
updateStrategy: RollingUpdate
service:
nodePort: 9000
environment:
## Please refer for comprehensive list https://docs.minio.io/docs/minio-server-configuration-guide.html
appVolumeMounts:
export:
emptyDir: true
mountPath: "/export"
...@@ -16,4 +16,4 @@ sources: ...@@ -16,4 +16,4 @@ sources:
- https://github.com/minio/minio - https://github.com/minio/minio
- https://github.com/minio/charts - https://github.com/minio/charts
upstream_version: 8.0.5 upstream_version: 8.0.5
version: 1.3.11 version: 1.3.12
...@@ -73,9 +73,9 @@ questions: ...@@ -73,9 +73,9 @@ questions:
type: string type: string
- variable: accessKey - variable: accessKey
label: "Access Key" label: "Root User"
group: "Minio Configuration" group: "Minio Configuration"
description: "Enter the S3 access ID" description: "Enter the S3 Root User"
schema: schema:
type: string type: string
private: true private: true
...@@ -84,9 +84,9 @@ questions: ...@@ -84,9 +84,9 @@ questions:
max_length: 20 max_length: 20
- variable: secretKey - variable: secretKey
label: "Secret Key" label: "Root Password"
group: "Minio Configuration" group: "Minio Configuration"
description: "Enter the S3 secret access key" description: "Enter the S3 Root Password"
schema: schema:
type: string type: string
private: true private: true
......
...@@ -46,8 +46,8 @@ spec: ...@@ -46,8 +46,8 @@ spec:
{{ $envList = mustAppend $envList (dict "name" "MINIO_BROWSER_REDIRECT_URL" "value" (printf "%s://%s:%d" (include "minio.scheme" .) .Values.minioDomain (.Values.service.consolePort | int))) }} {{ $envList = mustAppend $envList (dict "name" "MINIO_BROWSER_REDIRECT_URL" "value" (printf "%s://%s:%d" (include "minio.scheme" .) .Values.minioDomain (.Values.service.consolePort | int))) }}
{{ $envList = mustAppend $envList (dict "name" "MINIO_SERVER_URL" "value" (printf "%s://%s:%d" (include "minio.scheme" .) .Values.minioDomain (.Values.service.nodePort | int))) }} {{ $envList = mustAppend $envList (dict "name" "MINIO_SERVER_URL" "value" (printf "%s://%s:%d" (include "minio.scheme" .) .Values.minioDomain (.Values.service.nodePort | int))) }}
{{ end }} {{ end }}
{{ $envList = mustAppend $envList (dict "name" "MINIO_ACCESS_KEY" "valueFromSecret" true "secretName" $secretName "secretKey" "accesskey") }} {{ $envList = mustAppend $envList (dict "name" "MINIO_ROOT_USER" "valueFromSecret" true "secretName" $secretName "secretKey" "accesskey") }}
{{ $envList = mustAppend $envList (dict "name" "MINIO_SECRET_KEY" "valueFromSecret" true "secretName" $secretName "secretKey" "secretkey") }} {{ $envList = mustAppend $envList (dict "name" "MINIO_ROOT_PASSWORD" "valueFromSecret" true "secretName" $secretName "secretKey" "secretkey") }}
{{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }}
{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} {{ include "common.networking.dnsConfiguration" .Values | nindent 6 }}
{{ include "common.storage.allAppVolumes" .Values | nindent 6 }} {{ include "common.storage.allAppVolumes" .Values | nindent 6 }}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment