-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use correct output format for CNI Add in networkPolicyOnly mode (#2037)
As per the CNI specification for the Add command: > If the plugin was supplied a prevResult as part of its input configuration, it MUST handle prevResult by either passing it through, or modifying it appropriately. In networkPolicyOnly mode, CNI chaining is used. Antrea receives a prevResult from the container runtime and must output it in case of success. We do not make any changes to the result, but we may convert it to a different CNI version format (the default one for Antrea). Previously, Antrea would output the entire input configuration (which does include prevResult), which would cause containerd to return an error. The integration test was incorrect and had to be fixed. Fixes #2002
- Loading branch information
1 parent
e027c7b
commit 6f25769
Showing
2 changed files
with
57 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters