Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/grpc/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"fmt"
"io"
"log/slog"
"strings"
"time"

v1 "github.com/metal-stack/metal-api/pkg/api/v1"
Expand All @@ -25,6 +26,10 @@ func WaitForAllocation(ctx context.Context, log *slog.Logger, service v1.BootSer
if err != nil {
log.Error("failed waiting for allocation", "retry after", timeout, "error", err)

if strings.Contains(err.Error(), "failed to verify certificate") {
return fmt.Errorf("certificate changed, rebooting")
}

time.Sleep(timeout)
continue
}
Expand Down
Loading