From 1c5ad9b7e7dfa6c9e7b8e7b4d92cab423830f314 Mon Sep 17 00:00:00 2001 From: jay vyas Date: Wed, 30 Sep 2020 11:12:56 -0400 Subject: [PATCH] remove dns_common.go delete configmap stuff --- test/e2e/network/dns_common.go | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/test/e2e/network/dns_common.go b/test/e2e/network/dns_common.go index e8691522313..78aaef02142 100644 --- a/test/e2e/network/dns_common.go +++ b/test/e2e/network/dns_common.go @@ -46,11 +46,10 @@ import ( var newLineRegexp = regexp.MustCompile("\r?\n") type dnsTestCommon struct { - f *framework.Framework - c clientset.Interface - ns string - name string - labels []string + f *framework.Framework + c clientset.Interface + ns string + name string dnsPod *v1.Pod utilPod *v1.Pod @@ -189,13 +188,6 @@ func (t *dnsTestCommon) restoreDNSConfigMap(configMapData map[string]string) { } } -func (t *dnsTestCommon) deleteConfigMap() { - ginkgo.By(fmt.Sprintf("Deleting the ConfigMap (%s:%s)", t.ns, t.name)) - t.cm = nil - err := t.c.CoreV1().ConfigMaps(t.ns).Delete(context.TODO(), t.name, metav1.DeleteOptions{}) - framework.ExpectNoError(err, "failed to delete config map: %s", t.name) -} - func (t *dnsTestCommon) createUtilPodLabel(baseName string) { // Actual port # doesn't matter, just needs to exist. const servicePort = 10101