Skip to content
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

Update valid resolv conf #9948

Merged
merged 1 commit into from
May 24, 2024

Conversation

x-coder-L
Copy link

@x-coder-L x-coder-L commented Apr 15, 2024

Validate resolv.conf for presence of nameserver entries
Signed-off-by: linxin linxin@geedgenetworks.com

Proposed Changes

Validate resolv.conf for presence of nameserver entries
Adding this validation is necessary to prevent the scenario where not having any upstream is considered invalid.

Types of Changes

New Feature

Verification

Create a resolv.conf without a nameserver and start k3s. If coredns can run, or any pod using the default DNS policy has a resolv.conf with nameserver 8.8.8.8, it means the proposed changes are correct.

Testing

Linked Issues

#9874

@x-coder-L x-coder-L requested a review from a team as a code owner April 15, 2024 08:43
Copy link

codecov bot commented Apr 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.27%. Comparing base (81cd630) to head (0c42a21).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9948      +/-   ##
==========================================
- Coverage   49.63%   43.27%   -6.37%     
==========================================
  Files         158      158              
  Lines       14017    14020       +3     
==========================================
- Hits         6958     6067     -891     
- Misses       5755     6791    +1036     
+ Partials     1304     1162     -142     
Flag Coverage Δ
e2etests 36.14% <100.00%> (-9.99%) ⬇️
inttests 37.01% <100.00%> (-0.05%) ⬇️
unittests 16.56% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

pkg/agent/config/config.go Outdated Show resolved Hide resolved
pkg/agent/config/config.go Outdated Show resolved Hide resolved
@x-coder-L x-coder-L force-pushed the validate-resolv.conf-nameserver branch 2 times, most recently from f90591e to 118a9ef Compare April 16, 2024 03:44
Co-authored-by: Brad Davidson <brad@oatmail.org>
Signed-off-by: linxin <linxin@geedgenetworks.com>
@x-coder-L x-coder-L force-pushed the validate-resolv.conf-nameserver branch from 118a9ef to 0c42a21 Compare April 16, 2024 03:47
@x-coder-L x-coder-L requested a review from brandond April 16, 2024 06:24
@manuelbuil
Copy link
Contributor

We are in code freeze right now preparing for the April releases. This PR will need to go into the May releases

@brandond brandond merged commit f24ba9d into k3s-io:master May 24, 2024
27 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.

None yet

3 participants