-
Notifications
You must be signed in to change notification settings - Fork 42.1k
add /etc/nsswitch.conf to control plane images #69238
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
Conversation
c8cabd4 to
6d0c8af
Compare
|
/sig release |
ixdy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm besides minor nits
build/nsswitch.conf
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no trailing newline?
also I feel like this maybe belongs in a subdir, but I don't know where.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
first is done, don't know what subdir either...
build/BUILD
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: prefix with :
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
6d0c8af to
8ffd0b2
Compare
8ffd0b2 to
4274c42
Compare
|
/kind bug |
|
hmmm https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/69238/pull-kubernetes-verify/108080/#verify-staging-godeps something with godeps flaking... /retest |
ixdy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BenTheElder, ixdy The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
This file was added in 2018 (PR kubernetes#69238) to ensure Go's netgo DNS resolver respects /etc/hosts in busybox-based control plane images. In 2021 (PR kubernetes#99015), the build switched to on-disk Dockerfiles and distroless base images. The nsswitch.conf copying was dropped and the distroless base (Debian-based) already includes /etc/nsswitch.conf. Signed-off-by: Davanum Srinivas <[email protected]>
What this PR does / why we need it: adds a minimal
/etc/nsswitch.confto control plane images that do not have one, ensuring that they respect /etc/hosts when lookup up hostnamesWhich issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #69195
Special notes for your reviewer: Without this, in some cases we may do unnecessary DNS lookups in EG the API server. This broke my control plane boot due to trying to lookup
localhostRelease note: