From 364674e87302562d2be5b0a1013761c37baea970 Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Fri, 2 Feb 2024 10:44:02 +0100 Subject: [PATCH] fixup! add persistent queues Signed-off-by: Szilard Parrag --- internal/controller/telemetry/collector_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/telemetry/collector_controller.go b/internal/controller/telemetry/collector_controller.go index 8d1473a..3f00226 100644 --- a/internal/controller/telemetry/collector_controller.go +++ b/internal/controller/telemetry/collector_controller.go @@ -220,7 +220,7 @@ func (r *CollectorReconciler) Reconcile(ctx context.Context, req ctrl.Request) ( mountInitContainer := apiv1.Container{ Name: "persist-mount-fix", Image: fmt.Sprintf("%s:%s", DefaultMountContainerImage, DefaultMountContainerImageTag), - Command: []string{"sh", "-c", "chmod -R 777 " + PersistPath}, + Command: []string{"sh", "-c", "mkdir -p " + ReceiversPersistPath + "; mkdir -p " + ExportersPersistPath + "; " + "chmod -R 777 " + PersistPath}, VolumeMounts: []apiv1.VolumeMount{persistVolumeMount}, }