Add retry to LookupHost used to check the content of ExternalName

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-05-22 08:14:16 -04:00
parent 3e3e29b78f
commit 0baf75cd17
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
3 changed files with 25 additions and 4 deletions

View file

@ -83,7 +83,7 @@ func TestGetEndpoints(t *testing.T) {
&corev1.Service{
Spec: corev1.ServiceSpec{
Type: corev1.ServiceTypeExternalName,
ExternalName: "10.0.0.1.xip.io",
ExternalName: "www.10.0.0.1.xip.io",
Ports: []corev1.ServicePort{
{
Name: "default",
@ -102,7 +102,7 @@ func TestGetEndpoints(t *testing.T) {
},
[]ingress.Endpoint{
{
Address: "10.0.0.1.xip.io",
Address: "www.10.0.0.1.xip.io",
Port: "80",
},
},