Skip to content

Commit

Permalink
hubble relay struggle why
Browse files Browse the repository at this point in the history
Signed-off-by: Michi Mutsuzaki <[email protected]>
  • Loading branch information
michi-covalent committed May 9, 2023
1 parent fcecf04 commit b9a8ae7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions connectivity/check/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,11 @@ func (a *Action) GetIngressRequirements(p FlowParameters) []filters.FlowSetRequi
func (a *Action) waitForRelay(ctx context.Context, client observer.ObserverClient) error {
for {
res, err := client.ServerStatus(ctx, &observer.ServerStatusRequest{})
if err == nil && (res.NumUnavailableNodes == nil || res.NumUnavailableNodes.Value == 0) {
// This means all the nodes are available.
if err == nil {
a.Debugf("hubble relay server status %+v", res)
}
if err == nil && (res.NumUnavailableNodes == nil || res.NumUnavailableNodes.Value == 0) && res.NumFlows > 0 {
// This means all the nodes are available, and Hubble Relay started receiving flows.
return nil
}
select {
Expand Down

0 comments on commit b9a8ae7

Please sign in to comment.