mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
[e2e service] Change CleanupServiceGCEResources() to CleanupServiceResources()
This commit is contained in:
parent
2d629ce500
commit
51749b58e3
@ -90,8 +90,8 @@ var _ = SIGDescribe("Services", func() {
|
|||||||
framework.DescribeSvc(f.Namespace.Name)
|
framework.DescribeSvc(f.Namespace.Name)
|
||||||
}
|
}
|
||||||
for _, lb := range serviceLBNames {
|
for _, lb := range serviceLBNames {
|
||||||
framework.Logf("cleaning gce resource for %s", lb)
|
framework.Logf("cleaning load balancer resource for %s", lb)
|
||||||
framework.CleanupServiceGCEResources(cs, lb, framework.TestContext.CloudConfig.Region, framework.TestContext.CloudConfig.Zone)
|
framework.CleanupServiceResources(cs, lb, framework.TestContext.CloudConfig.Region, framework.TestContext.CloudConfig.Zone)
|
||||||
}
|
}
|
||||||
//reset serviceLBNames
|
//reset serviceLBNames
|
||||||
serviceLBNames = []string{}
|
serviceLBNames = []string{}
|
||||||
@ -1624,8 +1624,8 @@ var _ = SIGDescribe("ESIPP [Slow] [DisabledForLargeClusters]", func() {
|
|||||||
framework.DescribeSvc(f.Namespace.Name)
|
framework.DescribeSvc(f.Namespace.Name)
|
||||||
}
|
}
|
||||||
for _, lb := range serviceLBNames {
|
for _, lb := range serviceLBNames {
|
||||||
framework.Logf("cleaning gce resource for %s", lb)
|
framework.Logf("cleaning load balancer resource for %s", lb)
|
||||||
framework.CleanupServiceGCEResources(cs, lb, framework.TestContext.CloudConfig.Region, framework.TestContext.CloudConfig.Zone)
|
framework.CleanupServiceResources(cs, lb, framework.TestContext.CloudConfig.Region, framework.TestContext.CloudConfig.Zone)
|
||||||
}
|
}
|
||||||
//reset serviceLBNames
|
//reset serviceLBNames
|
||||||
serviceLBNames = []string{}
|
serviceLBNames = []string{}
|
||||||
@ -2025,8 +2025,8 @@ func execAffinityTestForLBService(f *framework.Framework, cs clientset.Interface
|
|||||||
defer func() {
|
defer func() {
|
||||||
framework.StopServeHostnameService(cs, ns, serviceName)
|
framework.StopServeHostnameService(cs, ns, serviceName)
|
||||||
lb := cloudprovider.GetLoadBalancerName(svc)
|
lb := cloudprovider.GetLoadBalancerName(svc)
|
||||||
framework.Logf("cleaning gce resource for %s", lb)
|
framework.Logf("cleaning load balancer resource for %s", lb)
|
||||||
framework.CleanupServiceGCEResources(cs, lb, framework.TestContext.CloudConfig.Region, framework.TestContext.CloudConfig.Zone)
|
framework.CleanupServiceResources(cs, lb, framework.TestContext.CloudConfig.Region, framework.TestContext.CloudConfig.Zone)
|
||||||
}()
|
}()
|
||||||
ingressIP := framework.GetIngressPoint(&svc.Status.LoadBalancer.Ingress[0])
|
ingressIP := framework.GetIngressPoint(&svc.Status.LoadBalancer.Ingress[0])
|
||||||
port := int(svc.Spec.Ports[0].Port)
|
port := int(svc.Spec.Ports[0].Port)
|
||||||
|
Loading…
Reference in New Issue
Block a user