From 0b9ce360d8f45da7900ad895cbaca3e60741f3af Mon Sep 17 00:00:00 2001 From: Janario Oliveira Date: Sat, 7 Dec 2019 20:41:08 +0100 Subject: [PATCH] [stable/mysql] #5154 MySql: Allow to override deployment strategy (#19201) * #5154 Allow to override mysql deployment strategy. Changed default to Recreate Signed-off-by: Janario Oliveira * Bump mysql version Signed-off-by: Janario Oliveira * Bump mysql version Signed-off-by: Janario Oliveira --- stable/mysql/Chart.yaml | 2 +- stable/mysql/README.md | 1 + stable/mysql/templates/deployment.yaml | 2 ++ stable/mysql/values.yaml | 3 +++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stable/mysql/Chart.yaml b/stable/mysql/Chart.yaml index 14cb2247f9..e020a0862c 100755 --- a/stable/mysql/Chart.yaml +++ b/stable/mysql/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: mysql -version: 1.5.0 +version: 1.6.0 appVersion: 5.7.27 description: Fast, reliable, scalable, and easy to use open-source relational database system. diff --git a/stable/mysql/README.md b/stable/mysql/README.md index e5efe9c026..8d729cbc40 100755 --- a/stable/mysql/README.md +++ b/stable/mysql/README.md @@ -120,6 +120,7 @@ The following table lists the configurable parameters of the MySQL chart and the | `podLabels` | Map of labels to add to the pods | `{}` | | `priorityClassName` | Set pod priorityClassName | `{}` | | `deploymentAnnotations` | Map of annotations for deployment | `{}` | +| `strategy` | Update strategy policy | `{type: "Recreate"}` | Some of the parameters above map to the env variables defined in the [MySQL DockerHub image](https://hub.docker.com/_/mysql/). diff --git a/stable/mysql/templates/deployment.yaml b/stable/mysql/templates/deployment.yaml index 46714cfa3f..71272c546b 100644 --- a/stable/mysql/templates/deployment.yaml +++ b/stable/mysql/templates/deployment.yaml @@ -14,6 +14,8 @@ metadata: {{- end }} spec: + strategy: +{{ toYaml .Values.strategy | indent 4 }} selector: matchLabels: app: {{ template "mysql.fullname" . }} diff --git a/stable/mysql/values.yaml b/stable/mysql/values.yaml index 3b092fc24d..a634d86026 100644 --- a/stable/mysql/values.yaml +++ b/stable/mysql/values.yaml @@ -4,6 +4,9 @@ image: "mysql" imageTag: "5.7.14" +strategy: + type: Recreate + busybox: image: "busybox" tag: "1.29.3"