-
Notifications
You must be signed in to change notification settings - Fork 54
Update CNI and CNI plugins #268
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
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: saschagrunert 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 |
Pull Request Test Coverage Report for Build 17370686602Details
💛 - Coveralls |
b4ede86
to
71e9a01
Compare
@cri-o/cri-o-maintainers PTAL, we have to cut a new release after this. |
pkg/ocicni/ocicni.go
Outdated
return nil, nil, err | ||
} | ||
|
||
if cniNet.config.Plugins == nil { |
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.
When the confBytes
has an empty plugins
(not nil), it loads plugins before change, but it returns an error after change. Is that expected?
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.
I'm working around exactly this issue by omitting the error check. This could be a regression in CNI from my point of view.
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.
Or rather an regression more than a behavioral change from the API.
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.
It seems only when it meets this condition, plugins can be 0-length slice or nil.
https://github.com/containernetworking/cni/blob/260917dab05ca7352c90c97a3537f8c808aa56b2/libcni/conf.go#L221-L223
It looks ok to me, but I want to wait a bit for others to look. @cri-o/ocicni-maintainers @cri-o/cri-o-maintainers
71e9a01
to
6b5408a
Compare
Signed-off-by: Sascha Grunert <[email protected]>
6b5408a
to
c343694
Compare
What type of PR is this?
/kind dependency-change
What this PR does / why we need it:
Update CNI and the plugins to the latest release.
Which issue(s) this PR fixes:
Fixes #259
Special notes for your reviewer:
None
Does this PR introduce a user-facing change?