Skip to content

Commit

Permalink
Always install curl unless it exists (#348)
Browse files Browse the repository at this point in the history
Signed-off-by: Kimmo Lehto <[email protected]>
  • Loading branch information
kke committed Mar 18, 2022
1 parent 52bd6b1 commit 9a94f2f
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions pkg/apis/k0sctl.k0sproject.io/v1beta1/cluster/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,17 +460,7 @@ func (h *Host) NeedCurl() bool {
return false
}

// Controllers always need curl
if h.IsController() {
return !h.Configurer.CommandExist(h, "curl")
}

// Workers only need curl if they're going to use the direct downloading
if !h.UploadBinary {
return !h.Configurer.CommandExist(h, "curl")
}

return false
return !h.Configurer.CommandExist(h, "curl")
}

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

0 comments on commit 9a94f2f

Please sign in to comment.