Skip to content

Commit 9a94f2f

Browse files
authored
Always install curl unless it exists (#348)
Signed-off-by: Kimmo Lehto <[email protected]>
1 parent 52bd6b1 commit 9a94f2f

File tree

1 file changed

+1
-11
lines changed
  • pkg/apis/k0sctl.k0sproject.io/v1beta1/cluster

1 file changed

+1
-11
lines changed

pkg/apis/k0sctl.k0sproject.io/v1beta1/cluster/host.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -460,17 +460,7 @@ func (h *Host) NeedCurl() bool {
460460
return false
461461
}
462462

463-
// Controllers always need curl
464-
if h.IsController() {
465-
return !h.Configurer.CommandExist(h, "curl")
466-
}
467-
468-
// Workers only need curl if they're going to use the direct downloading
469-
if !h.UploadBinary {
470-
return !h.Configurer.CommandExist(h, "curl")
471-
}
472-
473-
return false
463+
return !h.Configurer.CommandExist(h, "curl")
474464
}
475465

476466
// NeedIPTables returns true when the iptables package is needed on the host

0 commit comments

Comments
 (0)