Skip to content

Commit

Permalink
bug: disable oci bundle loader on byocri
Browse files Browse the repository at this point in the history
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 <ricardo.maraschini@gmail.com>
  • Loading branch information
ricardomaraschini committed Sep 5, 2024
1 parent 9c1c02b commit a203f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit a203f26

Please sign in to comment.