remove dns_common.go delete configmap stuff

This commit is contained in:
jay vyas 2020-09-30 11:12:56 -04:00
parent 77b78a2c1f
commit 1c5ad9b7e7

View File

@ -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