Skip to content

Commit 1c5ad9b

Browse files
committed
remove dns_common.go delete configmap stuff
1 parent 77b78a2 commit 1c5ad9b

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

test/e2e/network/dns_common.go

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,10 @@ import (
4646
var newLineRegexp = regexp.MustCompile("\r?\n")
4747

4848
type dnsTestCommon struct {
49-
f *framework.Framework
50-
c clientset.Interface
51-
ns string
52-
name string
53-
labels []string
49+
f *framework.Framework
50+
c clientset.Interface
51+
ns string
52+
name string
5453

5554
dnsPod *v1.Pod
5655
utilPod *v1.Pod
@@ -189,13 +188,6 @@ func (t *dnsTestCommon) restoreDNSConfigMap(configMapData map[string]string) {
189188
}
190189
}
191190

192-
func (t *dnsTestCommon) deleteConfigMap() {
193-
ginkgo.By(fmt.Sprintf("Deleting the ConfigMap (%s:%s)", t.ns, t.name))
194-
t.cm = nil
195-
err := t.c.CoreV1().ConfigMaps(t.ns).Delete(context.TODO(), t.name, metav1.DeleteOptions{})
196-
framework.ExpectNoError(err, "failed to delete config map: %s", t.name)
197-
}
198-
199191
func (t *dnsTestCommon) createUtilPodLabel(baseName string) {
200192
// Actual port # doesn't matter, just needs to exist.
201193
const servicePort = 10101

0 commit comments

Comments
 (0)