-
Notifications
You must be signed in to change notification settings - Fork 38.8k
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
add /etc/nsswitch.conf to control plane images #69238
Conversation
c8cabd4
to
6d0c8af
Compare
/sig release |
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
@@ -0,0 +1 @@ | |||
hosts: files dns |
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
# This list should roughly match kube::build::get_docker_wrapped_binaries() | ||
# in build/common.sh. | ||
DOCKERIZED_BINARIES = { | ||
"cloud-controller-manager": { | ||
"base": "@official_busybox//image", | ||
"base": "busybox-with-nsswitch", |
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 |
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
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
What this PR does / why we need it: adds a minimal
/etc/nsswitch.conf
to 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
localhost
Release note: