From f6cf73190f64a3782b1e80e9aecbad546da6fe94 Mon Sep 17 00:00:00 2001 From: Pasha Sviderski Date: Tue, 23 Dec 2025 19:48:18 +1000 Subject: [PATCH] chore: wait for FailedPrecondition in addition to Unavailable for backward compatibility --- pkg/client/machine.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/client/machine.go b/pkg/client/machine.go index 1f022af8..3efee19b 100644 --- a/pkg/client/machine.go +++ b/pkg/client/machine.go @@ -134,7 +134,9 @@ func (cli *Client) WaitClusterReady(ctx context.Context, timeout time.Duration) listMachines := func() error { _, err := cli.ListMachines(ctx, nil) if err != nil { - if s, ok := status.FromError(err); ok && s.Code() == codes.Unavailable { + if s, ok := status.FromError(err); ok && + // TODO: remove FailedPrecondition after releading 0.17. + (s.Code() == codes.Unavailable || s.Code() == codes.FailedPrecondition) { // Machine is not ready yet, retry. return err }