feat: add reload plugin to LocalDNS Corefile - #9179
Open
Saewon Kwak (saewoni) wants to merge 1 commit into
Open
Conversation
Saewon Kwak (saewoni)
requested review from
Chou Hu (AbelHu),
Devinwong,
Sri Harsha (SriHarsha001),
Nishchay (awesomenix),
Calvin S. (calvin197),
Cameron Meissner (cameronmeissner),
Sylvain Boily (djsly),
Ganeshkumar Ashokavardhanan (ganeshkumarashok),
Karen Chen (karenychen),
lilypan26,
Mark Ibrahim (mxj220),
Peter Damianov (pdamianov-dev),
Patrick W. Healy (phealy),
r2k1,
Runzhen (runzhen),
sulixu,
Tim Wright (timmy-wright),
Thibault Cohen (titilambert),
Xu Xue (xuexu6666) and
Zachary (zachary-bailey)
as code owners
August 11, 2026 22:36
Contributor
Windows Unit Test Results 3 files 12 suites 49s ⏱️ Results for commit e7562fd. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds the CoreDNS reload plugin directive to the generated LocalDNS Corefile so CoreDNS can gracefully reload when the Corefile changes, keeping the aks-node-controller and legacy pkg/agent render paths aligned.
Changes:
- Added server-block level
reloaddirective to the LocalDNS Corefile templates in both render paths. - Updated golden/expected Corefile outputs in Go tests for both implementations.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pkg/agent/baker.go | Adds reload to the legacy LocalDNS Corefile Go template output. |
| pkg/agent/baker_test.go | Updates expected LocalDNS Corefile strings to include reload. |
| aks-node-controller/parser/templates/localdns.toml.gtpl | Adds reload to the aks-node-controller LocalDNS Corefile template. |
| aks-node-controller/parser/helper_test.go | Updates expected LocalDNS Corefile strings to include reload. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change summary
Adds the CoreDNS reload plugin to generated LocalDNS Corefiles so CoreDNS can gracefully reload when the Corefile changes.
The rendered directive is plain reload, using CoreDNS defaults: 30s interval and 15s jitter.
Testing
Patched /opt/azure/containers/localdns/updated.localdns.corefile used in standalone smoke test