Skip to content

Commit

Permalink
DO NOT NERGE: debug
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Pantelis <[email protected]>
  • Loading branch information
tpantelis committed Sep 17, 2024
1 parent d9dc74c commit f65e745
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/diagnose/connections.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package diagnose

import (
"errors"
"time"

"github.com/submariner-io/admiral/pkg/reporter"
"github.com/submariner-io/admiral/pkg/resource"
Expand Down Expand Up @@ -89,6 +90,8 @@ func checkRouteAgentConnections(clusterInfo *cluster.Info, status reporter.Inter
status.Start("Checking route agent connections")
defer status.End()

time.Sleep(2 * time.Minute)

routeAgents, err := clusterInfo.GetRouteAgents()
if err != nil {
return status.Error(err, "Error retrieving route agents")
Expand All @@ -102,6 +105,7 @@ func checkRouteAgentConnections(clusterInfo *cluster.Info, status reporter.Inter

for i := range routeAgents {
routeAgent := &routeAgents[i]
tracker.Success("***RA: %s", resource.ToJSON(routeAgent))

if len(routeAgent.Status.RemoteEndpoints) == 0 {
tracker.Success("There are no remote endpoint connections on route agent %q", routeAgent.Name)
Expand Down

0 comments on commit f65e745

Please sign in to comment.