Merge pull request #113850 from aojea/e2e_service_panic

remove unused afterEach hook on e2e services
This commit is contained in:
Kubernetes Prow Robot 2022-11-14 09:50:53 -08:00 committed by GitHub
commit b10731edc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -762,24 +762,11 @@ var _ = common.SIGDescribe("Services", func() {
f.NamespacePodSecurityEnforceLevel = admissionapi.LevelPrivileged
var cs clientset.Interface
serviceLBNames := []string{}
ginkgo.BeforeEach(func() {
cs = f.ClientSet
})
ginkgo.AfterEach(func() {
if ginkgo.CurrentSpecReport().Failed() {
DescribeSvc(f.Namespace.Name)
}
for _, lb := range serviceLBNames {
framework.Logf("cleaning load balancer resource for %s", lb)
e2eservice.CleanupServiceResources(cs, lb, framework.TestContext.CloudConfig.Region, framework.TestContext.CloudConfig.Zone)
}
//reset serviceLBNames
serviceLBNames = []string{}
})
// TODO: We get coverage of TCP/UDP and multi-port services through the DNS test. We should have a simpler test for multi-port TCP here.
/*