siderolabs / omni

SaaS-simple deployment of Kubernetes - on your own hardware.
Other
529 stars 31 forks source link

test: fix flaky test by longer k8s node checks and retries #185

Closed utkuozdemir closed 5 months ago

utkuozdemir commented 5 months ago

Fix the flakiness in ReplaceControlPlanes test that was introduced by the recently added KubernetesNodeAuditController. This controller changed the Kubernetes node deletion logic to not block the ClusterMachineTeardownController for node deletions, as itself would take care of it later.

This causes the replaced control plane node in this test to be removed with a delay, as it is now removed by the audit controller after a grace period.

Improve the assertion between k8s<>Omni nodes by:

utkuozdemir commented 5 months ago

/m