Skip to content

Commit 658cd39

Browse files
hrenardkke
andauthored
Fix apply without K0sBinaryPath always performing an upgrade (#195)
* fix always upgrade * Update phase/gather_k0s_facts.go Co-authored-by: Kimmo Lehto <[email protected]>
1 parent aef791c commit 658cd39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phase/gather_k0s_facts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (p *GatherK0sFacts) needsUpgrade(h *cluster.Host) bool {
124124
// If supplimental files or a k0s binary have been specified explicitly,
125125
// always upgrade. This covers the scenario where a user moves from a
126126
// default-install cluster to one fed by OCI image bundles (ie. airgap)
127-
if len(h.Files) != 0 || len(h.K0sBinaryPath) == 0 {
127+
if len(h.Files) > 0 || h.K0sBinaryPath != "" {
128128
return true
129129
}
130130

0 commit comments

Comments
 (0)