From a203f26ed0f76640f7378631b26416042647f44e Mon Sep 17 00:00:00 2001 From: Ricardo Maraschini Date: Thu, 5 Sep 2024 15:14:38 +0200 Subject: [PATCH] bug: disable oci bundle loader on byocri oci bundle loader does not support bring your own cri as we can't possibly know where the containerd socket is. we should revisit this in the future and maybe attempt to contact through cri socket instead. Signed-off-by: Ricardo Maraschini --- cmd/worker/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/worker/worker.go b/cmd/worker/worker.go index c5eaba4541c4..778f8a11f9e9 100644 --- a/cmd/worker/worker.go +++ b/cmd/worker/worker.go @@ -140,9 +140,9 @@ func (c *Command) Start(ctx context.Context) error { if c.CriSocket == "" { componentManager.Add(ctx, containerd.NewComponent(c.LogLevels.Containerd, c.K0sVars, workerConfig)) + componentManager.Add(ctx, worker.NewOCIBundleReconciler(c.K0sVars)) } - componentManager.Add(ctx, worker.NewOCIBundleReconciler(c.K0sVars)) if c.WorkerProfile == "default" && runtime.GOOS == "windows" { c.WorkerProfile = "default-windows" }