Skip to content

Commit

Permalink
Fix apply without K0sBinaryPath always performing an upgrade (#195)
Browse files Browse the repository at this point in the history
* fix always upgrade

* Update phase/gather_k0s_facts.go

Co-authored-by: Kimmo Lehto <[email protected]>
  • Loading branch information
hrenard and kke authored Aug 25, 2021
1 parent aef791c commit 658cd39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phase/gather_k0s_facts.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (p *GatherK0sFacts) needsUpgrade(h *cluster.Host) bool {
// If supplimental files or a k0s binary have been specified explicitly,
// always upgrade. This covers the scenario where a user moves from a
// default-install cluster to one fed by OCI image bundles (ie. airgap)
if len(h.Files) != 0 || len(h.K0sBinaryPath) == 0 {
if len(h.Files) > 0 || h.K0sBinaryPath != "" {
return true
}

Expand Down

0 comments on commit 658cd39

Please sign in to comment.