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

[incubator/cassandra] Fix chart not being upgradable by removing mutable label from volumeClaimTemplate #12402

Merged
merged 10 commits into from
Apr 25, 2019
2 changes: 1 addition & 1 deletion incubator/cassandra/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: cassandra
version: 0.11.1
version: 0.12.0
appVersion: 3.11.3
description: Apache Cassandra is a free and open-source distributed database management
system designed to handle large amounts of data across many commodity servers, providing
Expand Down
18 changes: 18 additions & 0 deletions incubator/cassandra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,24 @@ If you want to delete your Chart, use this command
helm delete --purge "cassandra"
```

## Upgrading

To upgrade your Cassandra release, simply run

```bash
helm upgrade "cassandra" incubator/cassandra
```

### 0.12.0

This version fixes https://github.com/helm/charts/issues/7803 by removing mutable labels in `spec.VolumeClaimTemplate.metadata.labels` so that it is upgradable.

Until this version, in order to upgrade, you have to delete the Cassandra StatefulSet before upgrading:
```bash
$ kubectl delete statefulset --cascade=false my-cassandra-release
```


## Persist data
You need to create `StorageClass` before able to persist data in persistent volume.
To create a `StorageClass` on Google Cloud, run the following
Expand Down
2 changes: 0 additions & 2 deletions incubator/cassandra/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,7 @@ spec:
name: data
labels:
app: {{ template "cassandra.name" . }}
chart: {{ template "cassandra.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
accessModes:
- {{ .Values.persistence.accessMode | quote }}
Expand Down