mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-11 23:49:30 -05:00
fix waiting on gcp load balancer
This commit is contained in:
parent
174c5896cd
commit
2a6c5df7cc
@ -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…
Reference in New Issue
Block a user