Skip to content

Commit

Permalink
Update host.go
Browse files Browse the repository at this point in the history
Co-authored-by: Tobias Klauser <[email protected]>
Signed-off-by: Dario Mader <[email protected]>
  • Loading branch information
darox and tklauser authored Nov 9, 2023
1 parent 739180d commit d8c98cc
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions connectivity/tests/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,12 @@ func (s *podToHost) Run(ctx context.Context, t *check.Test) {
}

switch {
case addr.Type == "InternalIP":
{
addrType = "internal-ip"
}
case addr.Type == "ExternalIP":
{
addrType = "external-ip"
}
case addr.Type == "Hostname":
{
addrType = "hostname"
}
case addr.Type == corev1.NodeInternal:
addrType = "internal-ip"
case addr.Type == corev1.NodeExternalIP:
addrType = "external-ip"
case addr.Type == corev1.NodeHostName:
addrType = "hostname"
}

dst := check.ICMPEndpoint("", addr.Address)
Expand Down

0 comments on commit d8c98cc

Please sign in to comment.