From cbb6378295143f21955337f136e90f7447bfad6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=94=A6=E5=8D=97=E8=B7=AF=E4=B9=8B=E8=8A=B1?= Date: Thu, 3 Oct 2024 22:44:07 +0200 Subject: [PATCH] fix --wait's failure to work on coredns pods --- pkg/minikube/bootstrapper/bsutil/kverify/system_pods.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/minikube/bootstrapper/bsutil/kverify/system_pods.go b/pkg/minikube/bootstrapper/bsutil/kverify/system_pods.go index 7da7512312db..65552b14bf3f 100644 --- a/pkg/minikube/bootstrapper/bsutil/kverify/system_pods.go +++ b/pkg/minikube/bootstrapper/bsutil/kverify/system_pods.go @@ -91,6 +91,11 @@ func ExpectAppsRunning(cs *kubernetes.Clientset, expected []string) error { if pod.Status.Phase != core.PodRunning { continue } + for _, cs := range pod.Status.ContainerStatuses { + if !cs.Ready { + continue + } + } for k, v := range pod.ObjectMeta.Labels { if k == "component" || k == "k8s-app" {