Skip to content

Commit

Permalink
Do not wait for scheduling events after reinstall
Browse files Browse the repository at this point in the history
Signed-off-by: Kimmo Lehto <[email protected]>
  • Loading branch information
kke committed Nov 18, 2024
1 parent a06d3f6 commit b4177c5
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions phase/reinstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"math"
"strings"
"time"

"github.com/k0sproject/k0sctl/pkg/apis/k0sctl.k0sproject.io/v1beta1"
"github.com/k0sproject/k0sctl/pkg/apis/k0sctl.k0sproject.io/v1beta1/cluster"
Expand Down Expand Up @@ -112,19 +111,6 @@ func (p *Reinstall) reinstall(h *cluster.Host) error {
return nil
}

if NoWait || !p.IsWet() {
log.Warnf("%s: skipping scheduler and system pod checks because --no-wait given", h)
return nil
}

log.Infof("%s: waiting for the scheduler to become ready", h)
if err := retry.Timeout(context.TODO(), retry.DefaultTimeout, node.ScheduledEventsAfterFunc(h, time.Now())); err != nil {
if !Force {
return fmt.Errorf("failed to observe scheduling events after api start-up, you can ignore this check by using --force: %w", err)
}
log.Warnf("%s: failed to observe scheduling events after api start-up: %s", h, err)
}

log.Infof("%s: waiting for system pods to become ready", h)
if err := retry.Timeout(context.TODO(), retry.DefaultTimeout, node.SystemPodsRunningFunc(h)); err != nil {
if !Force {
Expand Down

0 comments on commit b4177c5

Please sign in to comment.