versioning: plugins require version match with config
infer version 0.1.0 when config is missing an explicit "cniVersion" field
This commit is contained in:
@ -112,6 +112,14 @@ type Route struct {
|
||||
GW net.IP
|
||||
}
|
||||
|
||||
// Well known error codes
|
||||
// see https://github.com/containernetworking/cni/blob/master/SPEC.md#well-known-error-codes
|
||||
const (
|
||||
ErrUnknown uint = iota // 0
|
||||
ErrIncompatibleCNIVersion // 1
|
||||
ErrUnsupportedField // 2
|
||||
)
|
||||
|
||||
type Error struct {
|
||||
Code uint `json:"code"`
|
||||
Msg string `json:"msg"`
|
||||
|
Reference in New Issue
Block a user