-
Notifications
You must be signed in to change notification settings - Fork 1k
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
CRI: An empty DNSConfig != unspecified #7764
CRI: An empty DNSConfig != unspecified #7764
Conversation
Hi @roman-kiselenko. Thanks for your PR. I'm waiting for a cri-o member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
4381ab1
to
d834ab3
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #7764 +/- ##
=======================================
Coverage 48.04% 48.05%
=======================================
Files 148 148
Lines 16339 16374 +35
=======================================
+ Hits 7850 7868 +18
- Misses 7533 7546 +13
- Partials 956 960 +4 |
/ok-to-test this is interesting. It's listed explicitly in https://github.com/containerd/containerd/pull/9730/files#diff-960bde24e7e0ac9df6b2556d747f483f0f3e6938d092e2b69bdb6750b7374be9R282-R285 that copying the host resolvConf on nil is potentially not the correct way, but containerd needs to do it for backwards compatibility. It almost feels like we shouldn't introduce this behavior if we don't have that reason? the alternative would be treating a nil object like an empty one and creating an empty WDYT @cri-o/cri-o-maintainers |
I also have doubts about this since copying the host
Something like this 🤔 : if s.config.DnsConfig == nil {
s.config.DnsConfig = &types.DnsConfig{}
} |
yeah exactly! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: roman-kiselenko, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
Not sure why tests are failed, will take a look closer 👀 |
@roman-kiselenko are you planning to add this code? |
yep 👍 |
/hold |
d834ab3
to
c15cb85
Compare
if config.DnsConfig empty assign empty DNSConfig struct Signed-off-by: roman-kiselenko <roman.kiselenko.dev@gmail.com>
c15cb85
to
abf3885
Compare
/retest |
if DnsConfig empty, it should copy the host's resolv.conf
What type of PR is this?
/kind other
What this PR does / why we need it:
This PR coordinates the behavior with the containerd. containerd/containerd#9730
Which issue(s) this PR fixes:
None
Special notes for your reviewer:
Reference kubernetes/kubernetes#120748
Does this PR introduce a user-facing change?
I guess some users will find this behavior a breaking change.