-
Notifications
You must be signed in to change notification settings - Fork 369
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
Update antrea cni to work with 0.4.0 version #784
Conversation
Thanks for your PR. The following commands are available:
These commands can only be run by members of the vmware-tanzu organization. |
@@ -29,7 +29,7 @@ func main() { | |||
cni.ActionAdd.Request, | |||
cni.ActionCheck.Request, | |||
cni.ActionDel.Request, | |||
cni_version.PluginSupports("0.1.0", "0.2.0", "0.3.0", "0.3.1"), | |||
cni_version.All, |
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.
should we actually switch to All
or just add 0.4.0
explicitly to the list of supported CNI versions? What is a new CNI version is released?
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.
Thinking about this more, I think my point was mostly moot. If a new CNI version is released, the value of All
would not change until we decide to explicitly update the CNI library version we use for Antrea (https://github.com/vmware-tanzu/antrea/blob/master/go.mod#L15). And it stands to reason that we would only do that if we were ready to support the new CNI spec version...
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.
so in the go.mod you have cni 0.7.1 https://github.com/vmware-tanzu/antrea/blob/master/go.mod#L15 which support cni spec 0.4.0 see https://github.com/containernetworking/cni/blob/v0.7.1/pkg/version/version.go#L39 .
So IMO the "All" should be good.
Also I think you also need to change this https://github.com/vmware-tanzu/antrea/blob/master/pkg/agent/cniserver/server.go#L107 to be taken from the containernetworking/cni/. The support version should be defined by cni version (/containernetworking/cni) in the go.mod.
In the current implementation you need to change it in sevral places
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.
do you mind making the change to https://github.com/vmware-tanzu/antrea/blob/master/pkg/agent/cniserver/server.go#L107 as part of this PR? And any other related change you deem necessary?
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.
Sure will do
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, but I'd like to have a +1 from @tnqn as well.
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, just to confirm, the code is to make antrea work when user override cniVersion to 0.4.0 in cniConf: https://github.com/vmware-tanzu/antrea/blob/master/build/yamls/base/conf/antrea-cni.conflist, right?
yes, don't merged it yet I have another change to add |
This patch update the antrea cni to get the supported version for the cni pkg (both client and server). It also update the host-local plugin in the Ubunut image with version that support cni spec 0.4.0
/test-all |
Thanks @moshe010 for the update. |
This patch update the antrea cni to get the supported version for the cni pkg (both client and server). It also update the host-local plugin in the Ubunut image with version that support cni spec 0.4.0
This patch update the antrea cni to get the supported version
for the cni pkg. It also update the host-local plugin in the Ubunut
image with version that support cni spec 0.4.0