-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
invoke: if Result CNIVersion is empty use netconf CNIVersion
The CNI Spec requires plugins to return a CNIVersion in the Result that is the same as the CNIVersion of the incoming CNI config. Empty CNIVersions are specified to map to 0.1.0 (since the first CNI spec didn't have versioning) and libcni handles that automatically. Unfortunately some versions of Weave don't do that and depend on a libcni <= 0.8 quirk that used the netconf version if the result version was empty. This is technically a libcni regression, though the plugin itself is violating the specification. Thus for backwards compatibility assume that if the Result CNIVersion is empty, the netconf CNIVersion should be used as the Result version. Fixes: #895 Signed-off-by: Dan Williams <[email protected]>
- Loading branch information
Showing
2 changed files
with
76 additions
and
1 deletion.
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