mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
cleaning up load balancer resources
This commit is contained in:
parent
f4b2452654
commit
2479bd65c9
@ -2024,6 +2024,9 @@ func execAffinityTestForLBService(f *framework.Framework, cs clientset.Interface
|
|||||||
jig.SanityCheckService(svc, v1.ServiceTypeLoadBalancer)
|
jig.SanityCheckService(svc, v1.ServiceTypeLoadBalancer)
|
||||||
defer func() {
|
defer func() {
|
||||||
framework.StopServeHostnameService(cs, f.InternalClientset, f.ScalesGetter, ns, serviceName)
|
framework.StopServeHostnameService(cs, f.InternalClientset, f.ScalesGetter, ns, serviceName)
|
||||||
|
lb := cloudprovider.GetLoadBalancerName(svc)
|
||||||
|
framework.Logf("cleaning gce resource for %s", lb)
|
||||||
|
framework.CleanupServiceGCEResources(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