From 6f421255f24bf6e08a6af1fe1035c50fce03ae30 Mon Sep 17 00:00:00 2001 From: Michael Burman Date: Wed, 11 Sep 2024 16:55:17 +0300 Subject: [PATCH] Add DSE specific cassandra base config path for readOnly --- pkg/reconciliation/construct_podtemplatespec.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/reconciliation/construct_podtemplatespec.go b/pkg/reconciliation/construct_podtemplatespec.go index ae53546a..3c2fcaa3 100644 --- a/pkg/reconciliation/construct_podtemplatespec.go +++ b/pkg/reconciliation/construct_podtemplatespec.go @@ -476,6 +476,8 @@ func buildInitContainers(dc *api.CassandraDatacenter, rackName string, baseTempl configContainer.Command = []string{"/bin/sh"} if dc.Spec.ServerType == "cassandra" { configContainer.Args = []string{"-c", "cp -rf /etc/cassandra/* /cassandra-base-config/"} + } else if dc.Spec.ServerType == "dse" { + configContainer.Args = []string{"-c", "cp -rf /opt/dse/resources/cassandra/conf/* /cassandra-base-config/"} } else if dc.Spec.ServerType == "hcd" { configContainer.Args = []string{"-c", "cp -rf /opt/hcd/resources/cassandra/conf/* /cassandra-base-config/"} }