Skip to content

Commit

Permalink
[stable/nats] Fix chart not being upgradable (helm#7832)
Browse files Browse the repository at this point in the history
Signed-off-by: Javier J. Salmeron Garcia <[email protected]>
  • Loading branch information
javsalgar authored and wgiddens committed Jan 18, 2019
1 parent 83b69d3 commit 0e9b7a6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/nats/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: nats
version: 0.1.1
version: 1.0.0
appVersion: 1.3.0
description: An open-source, cloud-native messaging system
keywords:
Expand Down
11 changes: 11 additions & 0 deletions stable/nats/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,14 @@ To horizontally scale this chart, run the following command to scale the number
```console
$ kubectl scale statefulset my-release-nats --replicas=3
```

## Upgrading

### To 1.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 1.0.0. The following example assumes that the release name is nats:

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

0 comments on commit 0e9b7a6

Please sign in to comment.