-
Notifications
You must be signed in to change notification settings - Fork 251
feat: add CoreDNS hosts plugin support for LocalDNS #8165
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
Open
saewoni
wants to merge
23
commits into
main
Choose a base branch
from
sakwa/localdns_poc_clean
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,170
−99
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
87100b0
feat(localdns): add hosts plugin support for LocalDNS
kwaksaewon 5bea34e
feat(vhd): wire aks-hosts-setup files into all packer VHD builds
kwaksaewon 5491a65
fix(spec): add dnsutils to shellspec Docker image and fix localdns spec
kwaksaewon f401894
fix: remove stale teleport code that leaked in from old merge
kwaksaewon 9d4cc1d
fix: remove stale non-localdns changes from branch
kwaksaewon 70971d8
fix: restore SKIP_WAAGENT_HOLD guard and tag e2e Private DNS zones
kwaksaewon 0e8e913
fix: restore remaining SKIP_WAAGENT_HOLD guards in nodePrep
kwaksaewon 1c01325
refactor: hosts plugin e2e to use dig AA flag, table-driven tests acr…
kwaksaewon 0399090
refactor: simplify enableLocalDNS to read corefile globals directly
kwaksaewon 499f89f
refactor: rename localdns corefile variables to FULL/BASE/ACTIVE
kwaksaewon 68332d3
refactor: rename corefile variables for backward compat and clarity
kwaksaewon 4186b58
refactor: add COREFILE_BASE and COREFILE_EXPERIMENTAL without modifyi…
kwaksaewon 9d188be
refactor: move corefile selection logic into select_localdns_corefile…
kwaksaewon 5645770
address PR review feedback: fix pipefail guard, tighten IPv6 regex, i…
kwaksaewon 7085b12
address remaining PR review feedback: nslookup→dig, fix stale comment…
kwaksaewon ce232df
fix legacy corefile to exclude hosts plugin, rewrite cse_main_spec fo…
kwaksaewon e7bda04
rename LOCALDNS_COREFILE_ACTIVE → LOCALDNS_COREFILE_BASE, fix Case 3 …
kwaksaewon afbd787
add unit test for old-CSE + new-VHD fallback path
kwaksaewon b12c5b8
remove Before=kubelet.service localdns.service from aks-hosts-setup.s…
kwaksaewon 2cc1611
use printf instead of echo for writing hosts file content
kwaksaewon 84e2a6d
address remaining PR review comments
kwaksaewon 9fcafde
remove MockUnknownCloud dead code per reviewer feedback
kwaksaewon 65ac417
restart localdns in e2e after hosts file is populated
kwaksaewon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
1 change: 1 addition & 0 deletions
1
aks-node-controller/parser/testdata/AKSUbuntu2204+LocalDNS+HostsPlugin/generatedCSECommand
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /bin/bash -c echo $(date),$(hostname) > ${PROVISION_OUTPUT}; CLOUD_INIT_STATUS_SCRIPT="/opt/azure/containers/cloud-init-status-check.sh"; cloudInitExitCode=0; if [ -f "${CLOUD_INIT_STATUS_SCRIPT}" ]; then /bin/bash -c "source ${CLOUD_INIT_STATUS_SCRIPT}; handleCloudInitStatus \"${PROVISION_OUTPUT}\"; returnStatus=\$?; echo \"Cloud init status check exit code: \$returnStatus\" >> ${PROVISION_OUTPUT}; exit \$returnStatus" >> ${PROVISION_OUTPUT} 2>&1; else cloud-init status --wait > /dev/null 2>&1; fi; cloudInitExitCode=$?; if [ "$cloudInitExitCode" -eq 0 ]; then echo "cloud-init succeeded" >> ${PROVISION_OUTPUT}; else echo "cloud-init failed with exit code ${cloudInitExitCode}" >> ${PROVISION_OUTPUT}; cat ${PROVISION_OUTPUT} exit ${cloudInitExitCode}; fi; /usr/bin/nohup /bin/bash -c "/bin/bash /opt/azure/containers/provision_start.sh" |
1 change: 1 addition & 0 deletions
1
aks-node-controller/parser/testdata/AKSUbuntu2204+LocalDNS/generatedCSECommand
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /bin/bash -c echo $(date),$(hostname) > ${PROVISION_OUTPUT}; CLOUD_INIT_STATUS_SCRIPT="/opt/azure/containers/cloud-init-status-check.sh"; cloudInitExitCode=0; if [ -f "${CLOUD_INIT_STATUS_SCRIPT}" ]; then /bin/bash -c "source ${CLOUD_INIT_STATUS_SCRIPT}; handleCloudInitStatus \"${PROVISION_OUTPUT}\"; returnStatus=\$?; echo \"Cloud init status check exit code: \$returnStatus\" >> ${PROVISION_OUTPUT}; exit \$returnStatus" >> ${PROVISION_OUTPUT} 2>&1; else cloud-init status --wait > /dev/null 2>&1; fi; cloudInitExitCode=$?; if [ "$cloudInitExitCode" -eq 0 ]; then echo "cloud-init succeeded" >> ${PROVISION_OUTPUT}; else echo "cloud-init failed with exit code ${cloudInitExitCode}" >> ${PROVISION_OUTPUT}; cat ${PROVISION_OUTPUT} exit ${cloudInitExitCode}; fi; /usr/bin/nohup /bin/bash -c "/bin/bash /opt/azure/containers/provision_start.sh" |
18 changes: 16 additions & 2 deletions
18
aks-node-controller/pkg/gen/aksnodeconfig/v1/localdns_config.pb.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.