Skip to content

Commit

Permalink
[incubator/cassandra] Fix chart not being upgradable by removing mut…
Browse files Browse the repository at this point in the history
…able label from volumeClaimTemplate (helm#12402)

* [incubator/cassandra] rename backup.image.repository, update default value, add support for google credentials as a secret

Signed-off-by: Simon Hardy <sha@taktik.com>

* [incubator/cassandra] cleanup

Signed-off-by: Simon Hardy <sha@taktik.com>

* [incubator/cassandra] comment

Signed-off-by: Simon Hardy <sha@taktik.com>

* [incubator/cassandra] Fix chart not being upgradable by removing mutable label from VolumeClaimTemplate

Signed-off-by: Simon Hardy <sha@taktik.com>

* [incubator/cassandra] Update readme regarding chart not being upgradable

Signed-off-by: Simon Hardy <sha@taktik.com>

* [incubator/cassandra] readme small update

Signed-off-by: Simon Hardy <sha@taktik.com>

* [incubator/cassandra] remove heritage from volumeClaimTemplates labels

Signed-off-by: Simon Hardy <sha@taktik.com>
  • Loading branch information
Simon3 authored and devnulled committed Apr 25, 2019
1 parent 2e28ae9 commit 55b5402
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
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

0 comments on commit 55b5402

Please sign in to comment.