mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-03 18:40:48 -04:00
fix waiting on gcp load balancer
This commit is contained in:
parent
174c5896cd
commit
2a6c5df7cc
1 changed files with 5 additions and 0 deletions
|
@ -41,6 +41,11 @@ func ServiceIsUnavailable(err error) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// retry if GCP proxy LB isn't fully available yet
|
||||||
|
if strings.HasPrefix(statusErr.Message(), `connection error: desc = "transport: authentication handshake failed: read tcp`) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
// ideally we would check the error type directly, but grpc only provides a string
|
// ideally we would check the error type directly, but grpc only provides a string
|
||||||
return !strings.HasPrefix(statusErr.Message(), `connection error: desc = "transport: authentication handshake failed`)
|
return !strings.HasPrefix(statusErr.Message(), `connection error: desc = "transport: authentication handshake failed`)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue