mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-30 13:48:50 +00:00
The util for checking on daemonstatus was checking once if the Status of the daemonset was reporting that all the desired Pods are scheduled and ready. However, the pattern used in the e2e test for this function was not taking into consideration that the controller needs to propagate the Pod status to the DeamonSet status, and was asserting on the condition only once after waiting for all the Pods to be ready. In order to avoid more churn code, change the CheckDaemonStatus signature to the wait.Condition type and use it in a async poll loop on the tests.