mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-08-25 19:44:28 +00:00
Update network-attachment-definition-client for multus v3 (#996)
Update network-attachment-definition-client package to support DeviceInfo spec 1.1.0 Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com> Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
This commit is contained in:
parent
991a1b2c7f
commit
80c0f6f0c4
2
go.mod
2
go.mod
@ -7,7 +7,7 @@ require (
|
|||||||
github.com/containernetworking/cni v0.8.1
|
github.com/containernetworking/cni v0.8.1
|
||||||
github.com/containernetworking/plugins v0.9.1
|
github.com/containernetworking/plugins v0.9.1
|
||||||
github.com/fsnotify/fsnotify v1.4.9
|
github.com/fsnotify/fsnotify v1.4.9
|
||||||
github.com/k8snetworkplumbingwg/network-attachment-definition-client v1.1.2-0.20220511184442-64cfb249bdbe
|
github.com/k8snetworkplumbingwg/network-attachment-definition-client v1.1.2-0.20221215110210-ad3f3381681f
|
||||||
github.com/onsi/ginkgo v1.12.1
|
github.com/onsi/ginkgo v1.12.1
|
||||||
github.com/onsi/gomega v1.10.3
|
github.com/onsi/gomega v1.10.3
|
||||||
github.com/pkg/errors v0.9.1
|
github.com/pkg/errors v0.9.1
|
||||||
|
4
go.sum
4
go.sum
@ -363,8 +363,8 @@ github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/X
|
|||||||
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
|
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
|
||||||
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
|
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
|
||||||
github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes=
|
github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes=
|
||||||
github.com/k8snetworkplumbingwg/network-attachment-definition-client v1.1.2-0.20220511184442-64cfb249bdbe h1:VPiaEz+bUnFjUBBz3NnvmXbOtTs5Vpyzrsx9hcp/caM=
|
github.com/k8snetworkplumbingwg/network-attachment-definition-client v1.1.2-0.20221215110210-ad3f3381681f h1:SVJhARCyy2mmDUegdEBnYyLqjB4h6BxsfN5rfehExuU=
|
||||||
github.com/k8snetworkplumbingwg/network-attachment-definition-client v1.1.2-0.20220511184442-64cfb249bdbe/go.mod h1:+1DpV8uIwteAhxNO0lgRox8gHkTG6w3OeDfAlg+qqjA=
|
github.com/k8snetworkplumbingwg/network-attachment-definition-client v1.1.2-0.20221215110210-ad3f3381681f/go.mod h1:+1DpV8uIwteAhxNO0lgRox8gHkTG6w3OeDfAlg+qqjA=
|
||||||
github.com/karrick/godirwalk v1.16.1/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1qeJ3RV7ULlk=
|
github.com/karrick/godirwalk v1.16.1/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1qeJ3RV7ULlk=
|
||||||
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
|
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
|
||||||
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
||||||
|
@ -43,7 +43,7 @@ const (
|
|||||||
DeviceInfoTypeVHostUser = "vhost-user"
|
DeviceInfoTypeVHostUser = "vhost-user"
|
||||||
DeviceInfoTypeMemif = "memif"
|
DeviceInfoTypeMemif = "memif"
|
||||||
DeviceInfoTypeVDPA = "vdpa"
|
DeviceInfoTypeVDPA = "vdpa"
|
||||||
DeviceInfoVersion = "1.0.0"
|
DeviceInfoVersion = "1.1.0"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DeviceInfo contains the information of the device associated
|
// DeviceInfo contains the information of the device associated
|
||||||
@ -62,6 +62,7 @@ type PciDevice struct {
|
|||||||
Vhostnet string `json:"vhost-net,omitempty"`
|
Vhostnet string `json:"vhost-net,omitempty"`
|
||||||
RdmaDevice string `json:"rdma-device,omitempty"`
|
RdmaDevice string `json:"rdma-device,omitempty"`
|
||||||
PfPciAddress string `json:"pf-pci-address,omitempty"`
|
PfPciAddress string `json:"pf-pci-address,omitempty"`
|
||||||
|
RepresentorDevice string `json:"representor-device,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type VdpaDevice struct {
|
type VdpaDevice struct {
|
||||||
@ -70,6 +71,7 @@ type VdpaDevice struct {
|
|||||||
Path string `json:"path,omitempty"`
|
Path string `json:"path,omitempty"`
|
||||||
PciAddress string `json:"pci-address,omitempty"`
|
PciAddress string `json:"pci-address,omitempty"`
|
||||||
PfPciAddress string `json:"pf-pci-address,omitempty"`
|
PfPciAddress string `json:"pf-pci-address,omitempty"`
|
||||||
|
RepresentorDevice string `json:"representor-device,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@ -54,7 +54,7 @@ github.com/googleapis/gnostic/openapiv2
|
|||||||
github.com/imdario/mergo
|
github.com/imdario/mergo
|
||||||
# github.com/json-iterator/go v1.1.10
|
# github.com/json-iterator/go v1.1.10
|
||||||
github.com/json-iterator/go
|
github.com/json-iterator/go
|
||||||
# github.com/k8snetworkplumbingwg/network-attachment-definition-client v1.1.2-0.20220511184442-64cfb249bdbe
|
# github.com/k8snetworkplumbingwg/network-attachment-definition-client v1.1.2-0.20221215110210-ad3f3381681f
|
||||||
## explicit
|
## explicit
|
||||||
github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8s.cni.cncf.io
|
github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8s.cni.cncf.io
|
||||||
github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8s.cni.cncf.io/v1
|
github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8s.cni.cncf.io/v1
|
||||||
|
Loading…
Reference in New Issue
Block a user