google / gvisor

Application Kernel for Containers
https://gvisor.dev
Apache License 2.0
15.86k stars 1.3k forks source link

`test/kubernetes/testcluster`: Fix `WaitForDaemonset` timeout case. #11184

Open copybara-service[bot] opened 6 days ago

copybara-service[bot] commented 6 days ago

test/kubernetes/testcluster: Fix WaitForDaemonset timeout case.

Prior to this change, WaitForDaemonset would erroneously return a nil error when the context expired.

Also make error messages in WaitForDaemonset more helpful. This includes bailing out of the watch-based loop slightly before the context expiry, and fall back to the poll-based loop which provides a more helpful error message.