mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Remove unused function - verifyDNSPodIsRunning
In ea4a7e24ad
, we removed the cluster
DNS verification check from the test, but neglected to remove the
method itself.
This commit is contained in:
parent
35159f9c45
commit
9b586b0762
@ -280,21 +280,6 @@ func validateTargetedProbeOutput(f *framework.Framework, pod *v1.Pod, fileNames
|
||||
framework.Logf("DNS probes using %s succeeded\n", pod.Name)
|
||||
}
|
||||
|
||||
func verifyDNSPodIsRunning(f *framework.Framework) {
|
||||
systemClient := f.ClientSet.Core().Pods(metav1.NamespaceSystem)
|
||||
By("Waiting for DNS Service to be Running")
|
||||
options := metav1.ListOptions{LabelSelector: dnsServiceLabelSelector.String()}
|
||||
dnsPods, err := systemClient.List(options)
|
||||
if err != nil {
|
||||
framework.Failf("Failed to list all dns service pods")
|
||||
}
|
||||
if len(dnsPods.Items) < 1 {
|
||||
framework.Failf("No pods match the label selector %v", dnsServiceLabelSelector.String())
|
||||
}
|
||||
pod := dnsPods.Items[0]
|
||||
framework.ExpectNoError(framework.WaitForPodRunningInNamespace(f.ClientSet, &pod))
|
||||
}
|
||||
|
||||
func createServiceSpec(serviceName, externalName string, isHeadless bool, selector map[string]string) *v1.Service {
|
||||
headlessService := &v1.Service{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
|
Loading…
Reference in New Issue
Block a user