mirror of
https://github.com/siderolabs/talos.git
synced 2025-12-03 00:21:17 +01:00
This PR does those things: - Fixes race condition where controller could potentially modify upstream, while other controller is copying its internals to the slice. - Simplifies `run` function in `DNSUpstreamController` by removing all `Idx` handling. - Removes `Idx` field from `DNSUpstream`. Upstreams are now sorted by their id with №X prefix. - `Proxy` Stop is now called from the finalizer. In combination with iterators, this ensures that we only stop upstream when it's fully unreachable. Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>