[stable/mysql] Add ability to modify timezone (#7121) (#7123)

* [stable/mysql] Add ability to modify timezone (#7121)

* Add a 'timezone' to allow timezone to be configured via TZ env

* Bump version number

* Slightly more descriptive README.md
This commit is contained in:
tristanveness
2018-08-13 10:26:01 -07:00
committed by k8s-ci-robot
parent 629ac18a56
commit dace2ddea0
4 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: mysql
version: 0.8.2
version: 0.8.3
appVersion: 5.7.14
description: Fast, reliable, scalable, and easy to use open-source relational database
system.
+1
View File
@@ -86,6 +86,7 @@ The following table lists the configurable parameters of the MySQL chart and the
| `ssl.certificates[0].key` | Server key (private key) | `nil` |
| `imagePullSecrets` | Name of Secret resource containing private registry credentials | `nil` |
| `initializationFiles` | List of SQL files which are run after the container started | `nil` |
| `timezone` | Container and mysqld timezone (TZ env) | `nil` (UTC depending on image) |
Some of the parameters above map to the env variables defined in the [MySQL DockerHub image](https://hub.docker.com/_/mysql/).
+4
View File
@@ -58,6 +58,10 @@ spec:
value: {{ default "" .Values.mysqlUser | quote }}
- name: MYSQL_DATABASE
value: {{ default "" .Values.mysqlDatabase | quote }}
{{- if .Values.timezone }}
- name: TZ
value: {{ .Values.timezone }}
{{- end }}
ports:
- name: mysql
containerPort: 3306
+7
View File
@@ -127,3 +127,10 @@ ssl:
# -----BEGIN RSA PRIVATE KEY-----
# ...
# -----END RSA PRIVATE KEY-----
## Populates the 'TZ' system timezone environment variable
## ref: https://dev.mysql.com/doc/refman/5.7/en/time-zone-support.html
##
## Default: nil (mysql will use image's default timezone, normally UTC)
## Example: 'Australia/Sydney'
# timezone: