From 3b3d83e62d5de02d8ff07471d8309862253076b6 Mon Sep 17 00:00:00 2001 From: Pete Savage Date: Fri, 6 Dec 2024 14:21:14 +0000 Subject: [PATCH] Fix config loading --- controllers/cloud.redhat.com/providers/sidecar/default.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/cloud.redhat.com/providers/sidecar/default.go b/controllers/cloud.redhat.com/providers/sidecar/default.go index b0f051237..15327aa32 100644 --- a/controllers/cloud.redhat.com/providers/sidecar/default.go +++ b/controllers/cloud.redhat.com/providers/sidecar/default.go @@ -51,7 +51,7 @@ func (sc *sidecarProvider) Provide(app *crd.ClowdApp) error { cont := getOtelCollector(app.Name) if cont != nil { d.Spec.Template.Spec.Containers = append(d.Spec.Template.Spec.Containers, *cont) - innerDeployment.PodSpec.Volumes = append(innerDeployment.PodSpec.Volumes, core.Volume{ + d.Spec.Template.Spec.Volumes = append(d.Spec.Template.Spec.Volumes, core.Volume{ Name: fmt.Sprintf("%s-otel-config", app.Name), VolumeSource: core.VolumeSource{ ConfigMap: &core.ConfigMapVolumeSource{