diff --git a/pkg/telemetry/cassandra_agent/cassandra_agent_config.go b/pkg/telemetry/cassandra_agent/cassandra_agent_config.go index f2d2f37f8..8f05d3fc4 100644 --- a/pkg/telemetry/cassandra_agent/cassandra_agent_config.go +++ b/pkg/telemetry/cassandra_agent/cassandra_agent_config.go @@ -21,7 +21,7 @@ import ( ) var ( - agentConfigLocation = "/opt/management-api/metric-collector.yaml" + agentConfigLocation = "/opt/management-api/configs/metric-collector.yaml" defaultAgentConfig = telemetryapi.CassandraAgentSpec{ Endpoint: telemetryapi.Endpoint{ Port: "9000", diff --git a/pkg/telemetry/cassandra_agent/cassandra_agent_config_test.go b/pkg/telemetry/cassandra_agent/cassandra_agent_config_test.go index 9ceb33f3a..cf6a26586 100644 --- a/pkg/telemetry/cassandra_agent/cassandra_agent_config_test.go +++ b/pkg/telemetry/cassandra_agent/cassandra_agent_config_test.go @@ -106,8 +106,8 @@ func Test_AddStsVolumes(t *testing.T) { } expectedVm := corev1.VolumeMount{ Name: "metrics-agent-config", - MountPath: agentConfigLocation, - SubPath: filepath.Base(agentConfigLocation), + MountPath: "/opt/management-api/configs/metric-collector.yaml", + SubPath: "metric-collector.yaml", } assert.Contains(t, dc.Spec.PodTemplateSpec.Spec.Containers[cassContainer].VolumeMounts, expectedVm) }