Merge pull request #119454 from pacoxu/fix-ip-mode

use LoadBalancer type service for e2e service test to patch ingress status
This commit is contained in:
Kubernetes Prow Robot 2023-08-18 20:27:19 -07:00 committed by GitHub
commit c2bddad813
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3350,13 +3350,14 @@ var _ = common.SIGDescribe("Services", func() {
Labels: testSvcLabels,
},
Spec: v1.ServiceSpec{
Type: "ClusterIP",
Type: "LoadBalancer",
Ports: []v1.ServicePort{{
Name: "http",
Protocol: v1.ProtocolTCP,
Port: int32(80),
TargetPort: intstr.FromInt32(80),
}},
LoadBalancerClass: utilpointer.String("example.com/internal-vip"),
},
}
_, err = cs.CoreV1().Services(ns).Create(ctx, &testService, metav1.CreateOptions{})