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

Skip to content

Conversation

@olljanat
Copy link
Contributor

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

This is replacement for #5833 to add a nomad plugin, takes improvements from https://github.com/ituoga/coredns-nomad and handle feedback which that original PR received.

2. Which issues (if any) are related?

#5829

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

The plugin README.md included.

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

No

@codecov
Copy link

codecov bot commented Aug 20, 2025

Codecov Report

❌ Patch coverage is 57.66129% with 105 lines in your changes missing coverage. Please review.
✅ Project coverage is 61.98%. Comparing base (93c57b6) to head (46cdaad).
⚠️ Report is 1673 commits behind head on master.

Files with missing lines Patch % Lines
plugin/nomad/setup.go 47.52% 43 Missing and 10 partials ⚠️
plugin/nomad/nomad.go 60.82% 29 Missing and 9 partials ⚠️
plugin/nomad/helpers.go 76.59% 9 Missing and 2 partials ⚠️
plugin/nomad/ready.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7467      +/-   ##
==========================================
+ Coverage   55.70%   61.98%   +6.28%     
==========================================
  Files         224      278      +54     
  Lines       10016    18542    +8526     
==========================================
+ Hits         5579    11493    +5914     
- Misses       3978     6356    +2378     
- Partials      459      693     +234     

☔ 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.

cache
errors
nomad {
zone service.nomad
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the zone option is missing from the Syntax section, Although...
In most other plugins the zone is configured as an option before the plugin block, as in ...

nomad service.nomad {
        address http://127.0.0.1:4646 http://127.0.0.2:4646 http://127.0.0.3:4646
        ttl 10
    }

It's not a crucial difference, but it would make it more consistent with the syntax of other plugins that specify a zone.

@olljanat
Copy link
Contributor Author

@thevilledev @chrisohaver All valid feedback. Should be fixed now.

Copy link
Collaborator

@thevilledev thevilledev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments from my side

Signed-off-by: Olli Janatuinen <[email protected]>
@olljanat
Copy link
Contributor Author

Minor comments from my side

@thevilledev Those are fixed now as well.

Copy link
Collaborator

@thevilledev thevilledev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yongtang yongtang merged commit 83ce0ba into coredns:master Sep 30, 2025
13 checks passed
@olljanat olljanat mentioned this pull request Nov 25, 2025
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.

4 participants