Skip to content
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

deps: vendor containernetworking/plugins functions for net NS utils #20556

Merged
merged 1 commit into from
May 13, 2024

Conversation

tgross
Copy link
Member

@tgross tgross commented May 10, 2024

We bring in containernetworking/plugins for the contents of a single file, which we use in a few places for running a goroutine in a specific network namespace. This code hasn't needed an update in a couple of years, and a good chunk of what we need was previously vendored into client/lib/nsutil already.

Updating the library via dependabot is causing errors in Docker driver tests because it updates a lot of transient dependencies, and it's bringing in a pile of new transient dependencies like opentelemetry. Avoid this problem going forward by vendoring the remaining code we hadn't already.

Ref: #20146

We bring in `containernetworking/plugins` for the contents of a single file,
which we use in a few places for running a goroutine in a specific network
namespace. This code hasn't needed an update in a couple of years, and a good
chunk of what we need was previously vendored into `client/lib/nsutil`
already.

Updating the library via dependabot is causing errors in Docker driver tests
because it updates a lot of transient dependencies, and it's bringing in a pile
of new transient dependencies like opentelemetry. Avoid this problem going
forward by vendoring the remaining code we hadn't already.

Ref: #20146
@tgross
Copy link
Member Author

tgross commented May 10, 2024

Note the semgrep rule is a false positive here: it's complaining about importing BUSL-licensed code into MPL2 packages, but this package is Apache licensed.

@tgross tgross marked this pull request as ready for review May 10, 2024 19:51
@tgross tgross added backport/1.6.x backport to 1.6.x release line backport/1.7.x backport to 1.7.x release line labels May 10, 2024
Copy link
Member

@schmichael schmichael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea

@tgross tgross merged commit 623486b into main May 13, 2024
26 of 27 checks passed
@tgross tgross deleted the deps-vendor-nslinux branch May 13, 2024 13:10
tgross added a commit that referenced this pull request May 13, 2024
…20556)

We bring in `containernetworking/plugins` for the contents of a single file,
which we use in a few places for running a goroutine in a specific network
namespace. This code hasn't needed an update in a couple of years, and a good
chunk of what we need was previously vendored into `client/lib/nsutil`
already.

Updating the library via dependabot is causing errors in Docker driver tests
because it updates a lot of transient dependencies, and it's bringing in a pile
of new transient dependencies like opentelemetry. Avoid this problem going
forward by vendoring the remaining code we hadn't already.

Ref: #20146
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.6.x backport to 1.6.x release line backport/1.7.x backport to 1.7.x release line theme/dependencies Pull requests that update a dependency file theme/networking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants