-
Notifications
You must be signed in to change notification settings - Fork 38.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
kubeadm: don't use the Docker SDK in util/system/docker_validator* #79449
kubeadm: don't use the Docker SDK in util/system/docker_validator* #79449
Conversation
/sig node |
/hold |
bed1a5a
to
9b87f1c
Compare
@@ -112,15 +112,7 @@ | |||
"github.com/coreos/etcd/pkg/tlsutil", | |||
"github.com/coreos/etcd/pkg/transport", | |||
"github.com/davecgh/go-spew/spew", | |||
"github.com/docker/distribution/digestset", | |||
"github.com/docker/distribution/reference", |
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.
looks like we depend on docker still; possibly due to the ipvs imports [1]
should be updated in separate PRs.
"github.com/docker/go-connections/nat", | ||
"github.com/docker/go-connections/sockets", | ||
"github.com/docker/go-connections/tlsconfig", | ||
"github.com/docker/go-units", | ||
"github.com/docker/libnetwork/ipvs", |
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.
[1]
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.
This is mostly pulled to use consts IIRC, I'll send a PR to consolidate our const usage (rbac, kube-proxy etc..)
Instead of creating a Docker client and fetching an Info object from the docker enpoint, call the "docker info" command and populate a local dockerInfo struct from JSON output. Also - add unit tests. - update import boss and bazel. This change affects "test/e2e_node/e2e_node_suite_test.go" as it consumes this Docker validator by calling "system.ValidateSpec()".
9b87f1c
to
cb56f91
Compare
/hold cancel |
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
/approve
thx @neolit123
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: neolit123, timothysc 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 |
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
What this PR does / why we need it:
Instead of creating a Docker client and fetching an Info object
from the Docker enpoint, call the "docker info" command
and populate a local dockerInfo struct from JSON output.
Also add unit tests.
This change affects "test/e2e_node/e2e_node_suite_test.go"
as it consumes this Docker validator by calling
"system.ValidateSpec()".
this decouples the validator and kubeadm from the Docker SDK.
Which issue(s) this PR fixes:
xref kubernetes/kubeadm#1638
Special notes for your reviewer:
NONE
Does this PR introduce a user-facing change?:
should not be user facing.
/assign @yastij
@kubernetes/sig-cluster-lifecycle-pr-reviews
cc @dims
/kind cleanup
/priority important-soon