Skip to content

Commit

Permalink
Add DSE specific cassandra base config path for readOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
burmanm committed Sep 11, 2024
1 parent ab6ce91 commit 6f42125
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/reconciliation/construct_podtemplatespec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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/"}
}
Expand Down

0 comments on commit 6f42125

Please sign in to comment.