summaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authorAndreas Geissler <andreas-geissler@telekom.de>2023-07-19 11:16:15 +0000
committerGerrit Code Review <gerrit@onap.org>2023-07-19 11:16:15 +0000
commitafd83333558d7b9240bec6836d13ca73fd494493 (patch)
tree727e139d04e313c17162a83f7c97fe948b552ceb /kubernetes
parent491446e0ef8966809476e969544ef6187e39bd58 (diff)
parent7e14d24ec4f8906d74584b68a04cd95934a98a94 (diff)
Merge "[DOC][CASSANDRA] Default StorageClass for Cassandra deployment"
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/common/cassandra/values.yaml2
-rw-r--r--kubernetes/common/common/templates/_cassOp.tpl2
2 files changed, 3 insertions, 1 deletions
diff --git a/kubernetes/common/cassandra/values.yaml b/kubernetes/common/cassandra/values.yaml
index 5bff17eaef..2f24750072 100644
--- a/kubernetes/common/cassandra/values.yaml
+++ b/kubernetes/common/cassandra/values.yaml
@@ -26,7 +26,7 @@ k8ssandraOperator:
enabled: true
cassandraVersion: 4.0.1
persistence:
- storageClassName: default
+ #storageClassName: default
size: 10Gi
config:
clusterName: cassandra
diff --git a/kubernetes/common/common/templates/_cassOp.tpl b/kubernetes/common/common/templates/_cassOp.tpl
index 6cf9c3ce7e..d6133422a3 100644
--- a/kubernetes/common/common/templates/_cassOp.tpl
+++ b/kubernetes/common/common/templates/_cassOp.tpl
@@ -35,7 +35,9 @@ spec:
serverVersion: {{ .Values.k8ssandraOperator.cassandraVersion }}
storageConfig:
cassandraDataVolumeClaimSpec:
+ {{ if .Values.k8ssandraOperator.persistence.storageClassName -}}
storageClassName: {{ .Values.k8ssandraOperator.persistence.storageClassName }}
+ {{- end }}
accessModes:
- ReadWriteOnce
resources: