forked from k0sproject/k0s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wait for autpoilot CRDs before starting Autopilot worker component
Instead of having two brute-force retry loops in a row, just have one that actually watches the CRDs and waits until it has observed all the Autopilot CRDs to be established. This covers API server reachability and CRD availability in one go. It also ensures that controller-runtime registration is done only once. Since controller-runtime v0.19.0, registering the same thing twice will result in an error. Signed-off-by: Tom Wieczorek <[email protected]>
- Loading branch information
Showing
1 changed file
with
115 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters