Skip to content

Commit

Permalink
[stable/rabbitmq] Fix chart not being upgradable (helm#7848)
Browse files Browse the repository at this point in the history
Signed-off-by: Javier J. Salmeron Garcia <[email protected]>
Signed-off-by: jenkin-x <[email protected]>
  • Loading branch information
javsalgar authored and jicowan committed Oct 2, 2018
1 parent a4083eb commit c43aae9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/rabbitmq/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: rabbitmq
version: 2.2.0
version: 3.0.0
appVersion: 3.7.7
description: Open source message broker software that implements the Advanced Message Queuing Protocol (AMQP)
keywords:
Expand Down
11 changes: 11 additions & 0 deletions stable/rabbitmq/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,14 @@ The chart mounts a [Persistent Volume](http://kubernetes.io/docs/user-guide/pers
```bash
$ helm install --set persistence.existingClaim=PVC_NAME rabbitmq
```

## 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 opencart:

```console
$ kubectl delete statefulset rabbitmq --cascade=false
```
1 change: 0 additions & 1 deletion stable/rabbitmq/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ spec:
matchLabels:
app: {{ template "rabbitmq.name" . }}
release: "{{ .Release.Name }}"
chart: {{ template "rabbitmq.chart" . }}
template:
metadata:
labels:
Expand Down

0 comments on commit c43aae9

Please sign in to comment.