[stable/parse] Fix chart not being upgradable (#7824)

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
This commit is contained in:
Javier J. Salmerón-García
2018-09-20 01:07:55 -07:00
committed by k8s-ci-robot
parent 2bf5132d95
commit 3ecfe9ce3a
4 changed files with 24 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: parse
version: 2.0.6
version: 3.0.0
appVersion: 3.0.0
description: Parse is a platform that enables users to add a scalable and powerful backend to launch a full-featured app for iOS, Android, JavaScript, Windows, Unity, and more.
keywords:
+13
View File
@@ -118,3 +118,16 @@ The [Bitnami Parse](https://github.com/bitnami/bitnami-docker-parse) image store
Persistent Volume Claims are used to keep the data across deployments. This is known to work in GCE, AWS, and minikube.
See the [Configuration](#configuration) section to configure the PVC or to disable persistence.
## 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 parse:
```console
$ kubectl patch deployment parse-parse-dashboard --type=json -p='[{"op": "remove", "path": "/spec/selector/matchLabels/chart"}]'
$ kubectl patch deployment parse-parse-server --type=json -p='[{"op": "remove", "path": "/spec/selector/matchLabels/chart"}]'
$ kubectl patch deployment parse-mongodb --type=json -p='[{"op": "remove", "path": "/spec/selector/matchLabels/chart"}]'
```
@@ -10,6 +10,11 @@ metadata:
heritage: "{{ .Release.Service }}"
component: "dashboard"
spec:
selector:
matchLabels:
app: {{ template "parse.name" . }}
release: "{{ .Release.Name }}"
component: "dashboard"
replicas: 1
template:
metadata:
@@ -9,6 +9,11 @@ metadata:
heritage: "{{ .Release.Service }}"
component: "server"
spec:
selector:
matchLabels:
app: {{ template "parse.name" . }}
release: "{{ .Release.Name }}"
component: "server"
replicas: 1
template:
metadata: