-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Borrow api module from containerd (instead of vendoring it) #3145
Borrow api module from containerd (instead of vendoring it) #3145
Conversation
12fe9fd
to
f82338c
Compare
experiment was ✅ Looks like the presubmit(s) are broken because of golang changes. Let's formalize this next week. |
related to containerd/containerd#7231 |
@dims Is this a workaround/hack that we are going to follow for this release? |
@akhilerm yes, that would be my proposal. |
42dcb61
to
45d1234
Compare
Hmm, I'm hitting some issues running the update script myself:
|
Thank you Dims for working on this, I think this will be a great workaround until containerd will have a proper API go module. |
@bobbypage what version of |
This is on my linux box ~ Debian Testing
|
fixed that wildcards problem @bobbypage (looks like i did this work on my macos which had the older version of tar) |
009beda
to
c508503
Compare
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
c508503
to
6b2d4b3
Compare
LGTM! |
FYI, this has completely broken projects like K3s that try to import both Containerd and Kubelet code into the same project. Containerd and the kubelet's cadvisor end up both registering the same types as part of package init. This was not a problem prior to this commit.
|
@brandond just to make sure whoever is looking at this. The Kubernetes team does not support the use case of kubelet code imported into other projects/products as mentioned in our README - https://github.com/kubernetes/kubernetes/#to-start-using-k8s pasting the snippet here:
|
Yes, we're aware that we are doing naughty things by mashing everything all together and mixing it up with a spoon. It mostly works, except when it doesn't. |
We only need the
api
folder from https://github.com/containerd/containerd project. So we have a script that fetches a zip for a specific version (latest as of now) and sticks it into athird_party/containerd
directory. We can run this script as and when needed and check in the code. We do this until containerd/containerd#7231 is fixed on containerd-side.Note that we patch the imports as well as we are creating a new directory/package structure here as well.