mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
remove dns_common.go delete configmap stuff
This commit is contained in:
parent
77b78a2c1f
commit
1c5ad9b7e7
@ -46,11 +46,10 @@ import (
|
|||||||
var newLineRegexp = regexp.MustCompile("\r?\n")
|
var newLineRegexp = regexp.MustCompile("\r?\n")
|
||||||
|
|
||||||
type dnsTestCommon struct {
|
type dnsTestCommon struct {
|
||||||
f *framework.Framework
|
f *framework.Framework
|
||||||
c clientset.Interface
|
c clientset.Interface
|
||||||
ns string
|
ns string
|
||||||
name string
|
name string
|
||||||
labels []string
|
|
||||||
|
|
||||||
dnsPod *v1.Pod
|
dnsPod *v1.Pod
|
||||||
utilPod *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) {
|
func (t *dnsTestCommon) createUtilPodLabel(baseName string) {
|
||||||
// Actual port # doesn't matter, just needs to exist.
|
// Actual port # doesn't matter, just needs to exist.
|
||||||
const servicePort = 10101
|
const servicePort = 10101
|
||||||
|
Loading…
Reference in New Issue
Block a user