Skip to content

Commit

Permalink
Nil panic
Browse files Browse the repository at this point in the history
Signed-off-by: Kimmo Lehto <[email protected]>
  • Loading branch information
kke committed Oct 16, 2023
1 parent 1fb8338 commit 5fcb491
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions phase/gather_k0s_facts.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ func (p *GatherK0sFacts) investigateK0s(h *cluster.Host) error {
}

func (p *GatherK0sFacts) needsUpgrade(h *cluster.Host) bool {
if h.Reset {
log.Debugf("%s: is going to be reset", h)
return false
}

// 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)
Expand Down

0 comments on commit 5fcb491

Please sign in to comment.