mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #114667 from Miciah/114666-e2e-remove-kubeadm-ism-in-DNS-HostNetwork-test
e2e: Remove kubeadm-ism in DNS HostNetwork test
This commit is contained in:
commit
5cdec8f99e
@ -559,11 +559,6 @@ var _ = common.SIGDescribe("DNS", func() {
|
||||
})
|
||||
|
||||
ginkgo.It("should work with the pod containing more than 6 DNS search paths and longer than 256 search list characters", func(ctx context.Context) {
|
||||
ginkgo.By("Getting the kube-dns IP")
|
||||
svc, err := f.ClientSet.CoreV1().Services("kube-system").Get(ctx, "kube-dns", metav1.GetOptions{})
|
||||
framework.ExpectNoError(err, "Failed to get kube-dns service")
|
||||
kubednsIP := svc.Spec.ClusterIP
|
||||
|
||||
// All the names we need to be able to resolve.
|
||||
namesToResolve := []string{
|
||||
"kubernetes.default",
|
||||
@ -590,8 +585,7 @@ var _ = common.SIGDescribe("DNS", func() {
|
||||
pod := createDNSPod(f.Namespace.Name, wheezyProbeCmd, jessieProbeCmd, dnsTestPodHostName, dnsTestServiceName)
|
||||
pod.Spec.DNSPolicy = v1.DNSClusterFirst
|
||||
pod.Spec.DNSConfig = &v1.PodDNSConfig{
|
||||
Nameservers: []string{kubednsIP},
|
||||
Searches: testSearchPaths,
|
||||
Searches: testSearchPaths,
|
||||
Options: []v1.PodDNSConfigOption{
|
||||
{
|
||||
Name: "ndots",
|
||||
|
Loading…
Reference in New Issue
Block a user