Merge pull request #805 from bitnami/mysqlFixChart

[bitnami/mysql] Fix chart not being upgradable
This commit is contained in:
Juan Ariza Toledano
2018-09-21 16:24:58 +02:00
committed by GitHub
4 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: mysql
version: 2.1.2
version: 3.0.0
appVersion: 5.7.23
description: Chart to create a Highly available MySQL cluster
keywords:
+12
View File
@@ -141,3 +141,15 @@ The allowed extensions are `.sh`, `.sql` and `.sql.gz`.
The [Bitnami MySQL](https://github.com/bitnami/bitnami-docker-mysql) image stores the MySQL data and configurations at the `/bitnami/mysql` path of the container.
The chart mounts a [Persistent Volume](kubernetes.io/docs/user-guide/persistent-volumes/) volume at this location. The volume is created using dynamic volume provisioning by default. An existing PersistentVolumeClaim can be defined.
## Upgrading
### To 3.0.0
Backwards compatibility is not guaranteed unless you modify the labels used on the chart's deployments.
Use the workaround below to upgrade from versions previous to 3.0.0. The following example assumes that the release name is mysql:
```console
$ kubectl delete statefulset mysql-master --cascade=false
$ kubectl delete statefulset mysql-slave --cascade=false
```
@@ -9,6 +9,11 @@ metadata:
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
spec:
selector:
matchLabels:
app: {{ template "name" . }}
release: "{{ .Release.Name }}"
component: "master"
serviceName: "{{ template "master.fullname" . }}"
replicas: 1
updateStrategy:
@@ -10,6 +10,11 @@ metadata:
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
spec:
selector:
matchLabels:
app: {{ template "name" . }}
release: "{{ .Release.Name }}"
component: "slave"
serviceName: "{{ template "slave.fullname" . }}"
replicas: {{ .Values.slave.replicas }}
updateStrategy: