Fix e2e failure when health-check is disabled
When two clusters are connected and healthcheck is disabled in one of
them and we try to run e2e on the other cluster, it results in an error.
This PR fixes it.
Fixes issue:
@@ -84,7 +84,7 @@ func verifyGateway(gw *submarinerv1.Gateway, otherCluster string) (bool, string,
conn.Endpoint.ClusterID, conn.Status, conn.StatusMessage), nil
}
- if gw.Status.LocalEndpoint.HealthCheckIP != "" {
+ if gw.Status.LocalEndpoint.HealthCheckIP != "" && conn.Endpoint.HealthCheckIP != "" {
if conn.LatencyRTT == nil {
return false, fmt.Sprintf("Connection for cluster %q has no LatencyRTT information", otherCluster), nil
}
