Skip to content

Commit

Permalink
[stable/parse] Fix chart not being upgradable (helm#7824)
Browse files Browse the repository at this point in the history
Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
Signed-off-by: Jakob Niggel <info@jakobniggel.de>
  • Loading branch information
javsalgar authored and Jnig committed Nov 13, 2018
1 parent e52070a commit af51f51
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/parse/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
13 changes: 13 additions & 0 deletions stable/parse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"}]'
```
5 changes: 5 additions & 0 deletions stable/parse/templates/dashboard-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions stable/parse/templates/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit af51f51

Please sign in to comment.