fix: remove unused LocalDNS health check domain - #9246
Open
Saewon Kwak (saewoni) wants to merge 1 commit into
Open
fix: remove unused LocalDNS health check domain#9246Saewon Kwak (saewoni) wants to merge 1 commit into
Saewon Kwak (saewoni) wants to merge 1 commit into
Conversation
Saewon Kwak (saewoni)
requested review from
Chou Hu (AbelHu),
Devinwong,
Sri Harsha (SriHarsha001),
Abigail Liang (abigailliang-aks-sig-node),
Abdul Asfari (aboodasfari),
Nishchay (awesomenix),
Ben Brady (benjamin-brady),
Calvin S. (calvin197),
Cameron Meissner (cameronmeissner),
Sylvain Boily (djsly),
fcher,
Ganeshkumar Ashokavardhanan (ganeshkumarashok),
janenotjung-hue,
Karen Chen (karenychen),
lilypan26,
Mark Ibrahim (mxj220),
Peter Damianov (pdamianov-dev),
Patrick W. Healy (phealy),
r2k1,
Runzhen (runzhen),
Shun Lyu (sinmentis),
sulixu,
Tim Wright (timmy-wright),
Thibault Cohen (titilambert),
Xu Xue (xuexu6666) and
Zachary (zachary-bailey)
as code owners
August 18, 2026 20:56
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes the unused LocalDNS forward health-check domain knob end-to-end (AgentBaker datamodel + rendering templates + aks-node-controller proto), keeping the health-check surface limited to the supported options and preventing accidental reuse of the removed protobuf field.
Changes:
- Removed
domainfromLocalDNSHealthCheckin the AgentBaker datamodel and from the CoreDNS Corefile/template rendering paths. - Updated unit tests to assert the generated Corefile no longer contains any
domaindirective for health checks. - Reserved protobuf field number/name (
3/"domain") inLocalDnsHealthCheckto preserve wire-compatibility expectations and avoid reuse.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/agent/datamodel/types.go | Drops Domain field and getter from LocalDNSHealthCheck. |
| pkg/agent/baker.go | Removes rendering of domain from LocalDNS forward health_check template blocks. |
| pkg/agent/baker_test.go | Updates expectations to validate Corefile contains only supported health-check knobs. |
| aks-node-controller/proto/aksnodeconfig/v1/localdns_config.proto | Reserves protobuf field number/name for removed domain field. |
| aks-node-controller/pkg/gen/aksnodeconfig/v1/localdns_config.pb.go | Regenerated output reflecting reserved field and removed accessor/field. |
| aks-node-controller/parser/templates/localdns.toml.gtpl | Removes template emission of domain for health_check. |
| aks-node-controller/parser/helper_test.go | Removes domain-related test cases and tightens “no domain emitted” assertions. |
Files not reviewed (1)
- aks-node-controller/pkg/gen/aksnodeconfig/v1/localdns_config.pb.go: Generated file
💡 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.
Description
Remove the unused
domainoption from LocalDNS CoreDNS forward health check configuration. The LocalDNS health-check scope is intentionally limited to the currently supported knobs:durationno_recfailfast_all_unhealthy_upstreamsThe removed proto field number/name are reserved so they are not reused accidentally. This keeps AgentBaker aligned with the aks-rp HCP proto cleanup and avoids exposing a health-check FQDN knob that aks-rp does not support end-to-end today.
Testing
cd aks-node-controller && go test ./parser ./pkg/nodeconfigutilsgo test ./pkg/agent ./pkg/agent/datamodelRelated