Remove retries to ExternalName (#4584)
This commit is contained in:
parent
189e742685
commit
624ce0857a
4 changed files with 9 additions and 28 deletions
|
|
@ -83,11 +83,11 @@ func TestGetEndpoints(t *testing.T) {
|
|||
&corev1.Service{
|
||||
Spec: corev1.ServiceSpec{
|
||||
Type: corev1.ServiceTypeExternalName,
|
||||
ExternalName: "www.10.0.0.1.xip.io",
|
||||
ExternalName: "www.google.com",
|
||||
Ports: []corev1.ServicePort{
|
||||
{
|
||||
Name: "default",
|
||||
TargetPort: intstr.FromInt(80),
|
||||
TargetPort: intstr.FromInt(443),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
@ -102,13 +102,13 @@ func TestGetEndpoints(t *testing.T) {
|
|||
},
|
||||
[]ingress.Endpoint{
|
||||
{
|
||||
Address: "www.10.0.0.1.xip.io",
|
||||
Port: "80",
|
||||
Address: "www.google.com",
|
||||
Port: "443",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"a service type ServiceTypeExternalName with an invalid ExternalName value should return one endpoint",
|
||||
"a service type ServiceTypeExternalName with an invalid ExternalName value should no return endpoints",
|
||||
&corev1.Service{
|
||||
Spec: corev1.ServiceSpec{
|
||||
Type: corev1.ServiceTypeExternalName,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue