From c8bf21c75be7c0b54ba7e3f6a05258d0fded3fc4 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 (cherry picked from commit a203f26ed0f76640f7378631b26416042647f44e) (cherry picked from commit 9fac1227ec5e7e1a2e9d1add7c8932049bdc572f) (cherry picked from commit 153a774c68e5a851cbc9a90456add987033047e9) --- 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 27260f3568ae..9d92766f1c55 100644 --- a/cmd/worker/worker.go +++ b/cmd/worker/worker.go @@ -143,9 +143,9 @@ func (c *Command) Start(ctx context.Context) error { if c.CriSocket == "" { componentManager.Add(ctx, worker.NewContainerd(c.Logging["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" }