Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@olljanat
Copy link
Contributor

@olljanat olljanat commented Aug 4, 2025

1. Why is this pull request needed and what does it do?

In multi-cloud scenario, this configuration can be used to prefer IP addresses near of client but still allow fallback to nonpreferred IPs when needed.

Configuration can be made but either configuring CoreDNS instance where clients are pointing to prefer local cloud or this can be combined with view plugin.

2. Which issues (if any) are related?

Implements #6515

3. Which documentation changes (if any) need to be made?

New prefer option available. Readme updated.

4. Does this introduce a backward incompatible change or deprecation?

No

@codecov
Copy link

codecov bot commented Aug 5, 2025

Codecov Report

❌ Patch coverage is 75.45455% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.80%. Comparing base (93c57b6) to head (7d57d33).
⚠️ Report is 1547 commits behind head on master.

Files with missing lines Patch % Lines
plugin/loadbalance/setup.go 61.01% 20 Missing and 3 partials ⚠️
plugin/loadbalance/prefer.go 92.15% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7433      +/-   ##
==========================================
+ Coverage   55.70%   59.80%   +4.10%     
==========================================
  Files         224      274      +50     
  Lines       10016    18103    +8087     
==========================================
+ Hits         5579    10826    +5247     
- Misses       3978     6644    +2666     
- Partials      459      633     +174     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@yongtang yongtang merged commit 52639bc into coredns:master Aug 5, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants