-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
nodeup: Check if /run/systemd/resolve/resolv.conf exists on the node and use it #16495
nodeup: Check if /run/systemd/resolve/resolv.conf exists on the node and use it #16495
Conversation
Hi @zak905. Thanks for your PR. I'm waiting for a kubernetes 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. |
@hakman I added a task to check whether |
@zak905 Is there a need for a task in this case? Wouldn't just checking the existence be enough? |
I agree, but based on my current understanding, I did not find a way to access the node file system (when bootstrapping) except using a task. Can you please clarify ? |
@zak905 I think the only change should be in func (d *Distribution) HasLoopbackEtcResolvConf() bool {
switch d.project {
case "ubuntu":
return d.version >= 18.04
case "flatcar":
return true
default:
if _, err := os.Stat("/run/systemd/resolve/resolv.conf"); err == nil {
return true
}
return false
}
} |
I see thanks. Done. It's much cleaner:) I will try to do an end to end test on Hetzner. |
/ok-to-test |
Thanks @zak905. If you don't mind, please squash the commits. kops/nodeup/pkg/model/tests/kubelet/featuregates/cluster.yaml Lines 23 to 27 in c670303
and kops/nodeup/pkg/model/tests/kubelet/warmpool/cluster.yaml Lines 23 to 24 in c670303
|
f9e703c
to
82c2015
Compare
Thanks @zak905! 😄 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hakman 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 |
Welcome! sorry I did not catch your last comment about testing until later. |
No worries! 👍 |
…-upstream-release-1.28 Automated cherry pick of #16495: check /run/systemd/resolve/resolv.conf inside
…-upstream-release-1.29 Automated cherry pick of #16495: check /run/systemd/resolve/resolv.conf inside
fixes #16494
The PR is in draft because I have not tested yet on a Hetzner account (maybe worth checking also other cloud providers)