Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/nats] Fix chart not being upgradable #7832

Merged
merged 1 commit into from
Sep 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be clearer if the version and release name were highlighted here..

```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