Skip to content

Commit

Permalink
[stable/ghost] Fix chart not being upgradable (helm#7814)
Browse files Browse the repository at this point in the history
* [stable/ghost] Fix chart not being upgradable

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Change readme

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
  • Loading branch information
javsalgar authored and wgiddens committed Jan 18, 2019
1 parent f8c7b4b commit dbfa3ff
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/ghost/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ghost
version: 4.0.21
version: 5.0.0
appVersion: 2.1.3
description: A simple, powerful publishing platform that allows you to share your
stories with the world
Expand Down
12 changes: 12 additions & 0 deletions stable/ghost/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,15 @@ The [Bitnami Ghost](https://github.com/bitnami/bitnami-docker-ghost) 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 5.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 5.0.0. The following example assumes that the release name is ghost:
```console
$ kubectl patch deployment ghost-ghost --type=json -p='[{"op": "remove", "path": "/spec/selector/matchLabels/chart"}]'
$ kubectl delete statefulset ghost-mariadb --cascade=false
```
4 changes: 4 additions & 0 deletions stable/ghost/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ metadata:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
spec:
selector:
matchLabels:
app: {{ template "ghost.fullname" . }}
release: "{{ .Release.Name }}"
replicas: 1
template:
metadata:
Expand Down

0 comments on commit dbfa3ff

Please sign in to comment.