From 5c00ec4bc679e13738470af49d5e1a6b415e4dbc Mon Sep 17 00:00:00 2001 From: Andrew Lavery Date: Tue, 5 Dec 2023 13:50:47 -0800 Subject: [PATCH] do not require downloading k0s binaries from the internet (#202) * do not require downloading k0s binaries from the internet this would save install time when installing on a different host than the embedded-cluster binary, but that is not currently supported * specify the path to the binary on the host --- pkg/config/host.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkg/config/host.go b/pkg/config/host.go index 45f449cd7..08d9d9ad4 100644 --- a/pkg/config/host.go +++ b/pkg/config/host.go @@ -9,6 +9,7 @@ import ( "github.com/k0sproject/rig/log" "github.com/sirupsen/logrus" + "github.com/replicatedhq/embedded-cluster/pkg/defaults" pb "github.com/replicatedhq/embedded-cluster/pkg/progressbar" ) @@ -30,10 +31,11 @@ func (h *hostcfg) render() *cluster.Host { } ifls = append(ifls, labelsToArg(h.Labels)...) return &cluster.Host{ - Role: h.Role, - UploadBinary: false, - NoTaints: h.Role == "controller+worker", - InstallFlags: ifls, + Role: h.Role, + UploadBinary: true, + K0sBinaryPath: defaults.K0sBinaryPath(), + NoTaints: h.Role == "controller+worker", + InstallFlags: ifls, Connection: rig.Connection{ SSH: &rig.SSH{ Address: h.Address,