Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: optimize DNSResolveCacheController #8577

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

DmitriyMV
Copy link
Member

Optimize DNSResolveCacheController type, including dns.Server optimization for easy start/stop. This PR ensures that we delete server from runners on stop (even unexpected) and restart it properly. Also fixes incorrect assumption on unit-tests.

Fixes #8563

This PR also does those things:

  • Removes utils.Runner
  • Removes ctxutil.MonitorFn
  • Removes dns.Runner
  • Removes network.dnsRunner

Optimize `DNSResolveCacheController` type, including `dns.Server` optimization for easy start/stop. This PR ensures that we
delete server from runners on stop (even unexpected) and restart it properly. Also fixes incorrect assumption on unit-tests.

Fixes siderolabs#8563

This PR also does those things:
- Removes `utils.Runner`
- Removes `ctxutil.MonitorFn`
- Removes `dns.Runner`
- Removes `network.dnsRunner`

Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
@DmitriyMV
Copy link
Member Author

/m

@talos-bot talos-bot merged commit ba7cdc8 into siderolabs:main Apr 10, 2024
18 checks passed
@DmitriyMV DmitriyMV deleted the dns-cache-fix branch April 10, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backported
Development

Successfully merging this pull request may close these issues.

flaky DNSService unit-test
3 participants