Skip to content

Commit

Permalink
fixed cassandra chart's persistence bug (helm#1245)
Browse files Browse the repository at this point in the history
* fixed cassandra chart's persistence bug

* Update Chart.yaml
  • Loading branch information
touchdown authored and Vic Iglesias committed Jul 6, 2017
1 parent fb20b8b commit 42bb278
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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.1.0
version: 0.1.1
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 high availability with no single point of failure.
icon: https://upload.wikimedia.org/wikipedia/commons/5/5e/Cassandra_logo.svg
keywords:
Expand Down
12 changes: 6 additions & 6 deletions incubator/cassandra/templates/cassandra-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ spec:
containerPort: {{ default 9160 .Values.config.ports.thrift }}
volumeMounts:
- name: data
{{- if .Values.persistence.enabled }}
mountPath: /var/lib/cassandra
{{- else }}
emptyDir: {}
{{- end }}
{{- if .Values.persistence.enabled }}
{{- if not .Values.persistence.enabled }}
volumes:
- name: data
emptyDir: {}
{{- else }}
volumeClaimTemplates:
- metadata:
name: data
Expand All @@ -125,4 +125,4 @@ spec:
resources:
requests:
storage: {{ .Values.persistence.size | quote }}
{{- end }}
{{- end }}

0 comments on commit 42bb278

Please sign in to comment.