remove unused afterEach hook on e2e services

This commit is contained in:
Antonio Ojea 2022-11-11 11:30:13 +00:00
parent d7bff1c809
commit cccc8da724

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.
/*