diff --git a/pkg/reconciliation/construct_podtemplatespec.go b/pkg/reconciliation/construct_podtemplatespec.go index 3c2fcaa3..2ee149bb 100644 --- a/pkg/reconciliation/construct_podtemplatespec.go +++ b/pkg/reconciliation/construct_podtemplatespec.go @@ -744,10 +744,23 @@ func buildContainers(dc *api.CassandraDatacenter, baseTemplate *corev1.PodTempla Name: "tmp", MountPath: "/tmp", }) - cassContainer.VolumeMounts = append(cassContainer.VolumeMounts, corev1.VolumeMount{ - Name: "etc-cassandra", - MountPath: "/etc/cassandra", - }) + + if dc.Spec.ServerType == "hcd" { + cassContainer.VolumeMounts = append(cassContainer.VolumeMounts, corev1.VolumeMount{ + Name: "etc-cassandra", + MountPath: "/opt/hcd/resources/cassandra/conf", + }) + } else if dc.Spec.ServerType == "dse" { + cassContainer.VolumeMounts = append(cassContainer.VolumeMounts, corev1.VolumeMount{ + Name: "etc-cassandra", + MountPath: "/opt/dse/resources/cassandra/conf", + }) + } else { + cassContainer.VolumeMounts = append(cassContainer.VolumeMounts, corev1.VolumeMount{ + Name: "etc-cassandra", + MountPath: "/etc/cassandra", + }) + } } volumeMounts = combineVolumeMountSlices(volumeMounts, cassContainer.VolumeMounts)