diff --git a/incubator/cassandra/Chart.yaml b/incubator/cassandra/Chart.yaml index 6689381ab605..06f0a68a2095 100644 --- a/incubator/cassandra/Chart.yaml +++ b/incubator/cassandra/Chart.yaml @@ -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 diff --git a/incubator/cassandra/README.md b/incubator/cassandra/README.md index 31becfdfb2bc..c33754b49033 100644 --- a/incubator/cassandra/README.md +++ b/incubator/cassandra/README.md @@ -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 diff --git a/incubator/cassandra/templates/statefulset.yaml b/incubator/cassandra/templates/statefulset.yaml index 1f548574e80a..d2b47450b5ce 100644 --- a/incubator/cassandra/templates/statefulset.yaml +++ b/incubator/cassandra/templates/statefulset.yaml @@ -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 }}