Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/mysql] The password values in values.yaml should be provided as base64 #3486

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stable/mysql/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: mysql
version: 0.3.4
version: 0.3.5
description: Fast, reliable, scalable, and easy to use open-source relational database
system.
keywords:
Expand Down
4 changes: 2 additions & 2 deletions stable/mysql/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ metadata:
type: Opaque
data:
{{ if .Values.mysqlRootPassword }}
mysql-root-password: {{ .Values.mysqlRootPassword | b64enc | quote }}
mysql-root-password: {{ .Values.mysqlRootPassword | quote }}
{{ else }}
mysql-root-password: {{ randAlphaNum 10 | b64enc | quote }}
{{ end }}
{{ if .Values.mysqlPassword }}
mysql-password: {{ .Values.mysqlPassword | b64enc | quote }}
mysql-password: {{ .Values.mysqlPassword | quote }}
{{ else }}
mysql-password: {{ randAlphaNum 10 | b64enc | quote }}
{{ end }}
4 changes: 2 additions & 2 deletions stable/mysql/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
image: "mysql"
imageTag: "5.7.14"

## Specify password for root user
## Specify base64 encoded password for root user
##
## Default: random 10 character string
# mysqlRootPassword: testing

## Create a database user
## Create a database user with base64 encoded password
##
# mysqlUser:
# mysqlPassword:
Expand Down