-
Notifications
You must be signed in to change notification settings - Fork 654
Bump CNI to 1.3 (and minor tooling versions) #4112
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
Conversation
9216480
to
f239e93
Compare
1366bf1
to
35920f1
Compare
Note: this involves following cni changes to their configuration format (non-conflist are no longer supported). |
@@ -533,21 +532,9 @@ func cniLoad(fileNames []string) (configList []*NetworkConfig, err error) { | |||
} | |||
|
|||
var netConfigList *libcni.NetworkConfigList | |||
if strings.HasSuffix(fileName, ".conflist") { |
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.
Maybe we should print a warning for a non-conflist file?
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.
Yeah. I find it all confusing.
Non-list configurations were removed from the 1.0 spec anyhow.
I'll add a log message.
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.
Looks like we wrap the error with a link pointing to conflist already "failed marshalling json out of network configuration file %q: %w\nFor details on the schema, see https://pkg.go.dev/github.com/containernetworking/cni/libcni#NetworkConfigList"
.
Is that enough?
Signed-off-by: apostasie <[email protected]>
Signed-off-by: apostasie <[email protected]>
Ohhhh Kubernetes... I want to punch you... |
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.
Thanks
Closes #4091