Skip to content

Commit ed9716d

Browse files
authored
Merge branch 'master' into auditing-timescaledb
2 parents bf8b8a8 + 96729c0 commit ed9716d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/grpc/wait.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"fmt"
77
"io"
88
"log/slog"
9+
"strings"
910
"time"
1011

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

29+
if strings.Contains(err.Error(), "failed to verify certificate") {
30+
return fmt.Errorf("certificate changed, rebooting")
31+
}
32+
2833
time.Sleep(timeout)
2934
continue
3035
}

0 commit comments

Comments
 (0)