mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #74423 from lmdaly/topology-manager-device-plugin-api-change
Device Plugin API change to include Topology Info in Devices
This commit is contained in:
commit
b91d64bfc1
@ -251,10 +251,103 @@ func (m *ListAndWatchResponse) GetDevices() []*Device {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type TopologyInfo struct {
|
||||||
|
Node *NUMANode `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
|
||||||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
|
XXX_sizecache int32 `json:"-"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *TopologyInfo) Reset() { *m = TopologyInfo{} }
|
||||||
|
func (*TopologyInfo) ProtoMessage() {}
|
||||||
|
func (*TopologyInfo) Descriptor() ([]byte, []int) {
|
||||||
|
return fileDescriptor_00212fb1f9d3bf1c, []int{4}
|
||||||
|
}
|
||||||
|
func (m *TopologyInfo) XXX_Unmarshal(b []byte) error {
|
||||||
|
return m.Unmarshal(b)
|
||||||
|
}
|
||||||
|
func (m *TopologyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
if deterministic {
|
||||||
|
return xxx_messageInfo_TopologyInfo.Marshal(b, m, deterministic)
|
||||||
|
} else {
|
||||||
|
b = b[:cap(b)]
|
||||||
|
n, err := m.MarshalToSizedBuffer(b)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return b[:n], nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
func (m *TopologyInfo) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_TopologyInfo.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *TopologyInfo) XXX_Size() int {
|
||||||
|
return m.Size()
|
||||||
|
}
|
||||||
|
func (m *TopologyInfo) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_TopologyInfo.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_TopologyInfo proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *TopologyInfo) GetNode() *NUMANode {
|
||||||
|
if m != nil {
|
||||||
|
return m.Node
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type NUMANode struct {
|
||||||
|
ID int64 `protobuf:"varint,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"`
|
||||||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
|
XXX_sizecache int32 `json:"-"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *NUMANode) Reset() { *m = NUMANode{} }
|
||||||
|
func (*NUMANode) ProtoMessage() {}
|
||||||
|
func (*NUMANode) Descriptor() ([]byte, []int) {
|
||||||
|
return fileDescriptor_00212fb1f9d3bf1c, []int{5}
|
||||||
|
}
|
||||||
|
func (m *NUMANode) XXX_Unmarshal(b []byte) error {
|
||||||
|
return m.Unmarshal(b)
|
||||||
|
}
|
||||||
|
func (m *NUMANode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
if deterministic {
|
||||||
|
return xxx_messageInfo_NUMANode.Marshal(b, m, deterministic)
|
||||||
|
} else {
|
||||||
|
b = b[:cap(b)]
|
||||||
|
n, err := m.MarshalToSizedBuffer(b)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return b[:n], nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
func (m *NUMANode) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_NUMANode.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *NUMANode) XXX_Size() int {
|
||||||
|
return m.Size()
|
||||||
|
}
|
||||||
|
func (m *NUMANode) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_NUMANode.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_NUMANode proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *NUMANode) GetID() int64 {
|
||||||
|
if m != nil {
|
||||||
|
return m.ID
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
// E.g:
|
// E.g:
|
||||||
// struct Device {
|
// struct Device {
|
||||||
// ID: "GPU-fef8089b-4820-abfc-e83e-94318197576e",
|
// ID: "GPU-fef8089b-4820-abfc-e83e-94318197576e",
|
||||||
// State: "Healthy",
|
// State: "Healthy",
|
||||||
|
// Topology:
|
||||||
|
// Node:
|
||||||
|
//ID: 1
|
||||||
//}
|
//}
|
||||||
type Device struct {
|
type Device struct {
|
||||||
// A unique ID assigned by the device plugin used
|
// A unique ID assigned by the device plugin used
|
||||||
@ -263,6 +356,8 @@ type Device struct {
|
|||||||
ID string `protobuf:"bytes,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"`
|
ID string `protobuf:"bytes,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"`
|
||||||
// Health of the device, can be healthy or unhealthy, see constants.go
|
// Health of the device, can be healthy or unhealthy, see constants.go
|
||||||
Health string `protobuf:"bytes,2,opt,name=health,proto3" json:"health,omitempty"`
|
Health string `protobuf:"bytes,2,opt,name=health,proto3" json:"health,omitempty"`
|
||||||
|
// Topology for device
|
||||||
|
Topology *TopologyInfo `protobuf:"bytes,3,opt,name=topology,proto3" json:"topology,omitempty"`
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
XXX_sizecache int32 `json:"-"`
|
XXX_sizecache int32 `json:"-"`
|
||||||
}
|
}
|
||||||
@ -270,7 +365,7 @@ type Device struct {
|
|||||||
func (m *Device) Reset() { *m = Device{} }
|
func (m *Device) Reset() { *m = Device{} }
|
||||||
func (*Device) ProtoMessage() {}
|
func (*Device) ProtoMessage() {}
|
||||||
func (*Device) Descriptor() ([]byte, []int) {
|
func (*Device) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_00212fb1f9d3bf1c, []int{4}
|
return fileDescriptor_00212fb1f9d3bf1c, []int{6}
|
||||||
}
|
}
|
||||||
func (m *Device) XXX_Unmarshal(b []byte) error {
|
func (m *Device) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
@ -313,6 +408,13 @@ func (m *Device) GetHealth() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *Device) GetTopology() *TopologyInfo {
|
||||||
|
if m != nil {
|
||||||
|
return m.Topology
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// - PreStartContainer is expected to be called before each container start if indicated by plugin during registration phase.
|
// - PreStartContainer is expected to be called before each container start if indicated by plugin during registration phase.
|
||||||
// - PreStartContainer allows kubelet to pass reinitialized devices to containers.
|
// - PreStartContainer allows kubelet to pass reinitialized devices to containers.
|
||||||
// - PreStartContainer allows Device Plugin to run device specific operations on
|
// - PreStartContainer allows Device Plugin to run device specific operations on
|
||||||
@ -326,7 +428,7 @@ type PreStartContainerRequest struct {
|
|||||||
func (m *PreStartContainerRequest) Reset() { *m = PreStartContainerRequest{} }
|
func (m *PreStartContainerRequest) Reset() { *m = PreStartContainerRequest{} }
|
||||||
func (*PreStartContainerRequest) ProtoMessage() {}
|
func (*PreStartContainerRequest) ProtoMessage() {}
|
||||||
func (*PreStartContainerRequest) Descriptor() ([]byte, []int) {
|
func (*PreStartContainerRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_00212fb1f9d3bf1c, []int{5}
|
return fileDescriptor_00212fb1f9d3bf1c, []int{7}
|
||||||
}
|
}
|
||||||
func (m *PreStartContainerRequest) XXX_Unmarshal(b []byte) error {
|
func (m *PreStartContainerRequest) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
@ -371,7 +473,7 @@ type PreStartContainerResponse struct {
|
|||||||
func (m *PreStartContainerResponse) Reset() { *m = PreStartContainerResponse{} }
|
func (m *PreStartContainerResponse) Reset() { *m = PreStartContainerResponse{} }
|
||||||
func (*PreStartContainerResponse) ProtoMessage() {}
|
func (*PreStartContainerResponse) ProtoMessage() {}
|
||||||
func (*PreStartContainerResponse) Descriptor() ([]byte, []int) {
|
func (*PreStartContainerResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_00212fb1f9d3bf1c, []int{6}
|
return fileDescriptor_00212fb1f9d3bf1c, []int{8}
|
||||||
}
|
}
|
||||||
func (m *PreStartContainerResponse) XXX_Unmarshal(b []byte) error {
|
func (m *PreStartContainerResponse) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
@ -415,7 +517,7 @@ type AllocateRequest struct {
|
|||||||
func (m *AllocateRequest) Reset() { *m = AllocateRequest{} }
|
func (m *AllocateRequest) Reset() { *m = AllocateRequest{} }
|
||||||
func (*AllocateRequest) ProtoMessage() {}
|
func (*AllocateRequest) ProtoMessage() {}
|
||||||
func (*AllocateRequest) Descriptor() ([]byte, []int) {
|
func (*AllocateRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_00212fb1f9d3bf1c, []int{7}
|
return fileDescriptor_00212fb1f9d3bf1c, []int{9}
|
||||||
}
|
}
|
||||||
func (m *AllocateRequest) XXX_Unmarshal(b []byte) error {
|
func (m *AllocateRequest) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
@ -460,7 +562,7 @@ type ContainerAllocateRequest struct {
|
|||||||
func (m *ContainerAllocateRequest) Reset() { *m = ContainerAllocateRequest{} }
|
func (m *ContainerAllocateRequest) Reset() { *m = ContainerAllocateRequest{} }
|
||||||
func (*ContainerAllocateRequest) ProtoMessage() {}
|
func (*ContainerAllocateRequest) ProtoMessage() {}
|
||||||
func (*ContainerAllocateRequest) Descriptor() ([]byte, []int) {
|
func (*ContainerAllocateRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_00212fb1f9d3bf1c, []int{8}
|
return fileDescriptor_00212fb1f9d3bf1c, []int{10}
|
||||||
}
|
}
|
||||||
func (m *ContainerAllocateRequest) XXX_Unmarshal(b []byte) error {
|
func (m *ContainerAllocateRequest) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
@ -513,7 +615,7 @@ type AllocateResponse struct {
|
|||||||
func (m *AllocateResponse) Reset() { *m = AllocateResponse{} }
|
func (m *AllocateResponse) Reset() { *m = AllocateResponse{} }
|
||||||
func (*AllocateResponse) ProtoMessage() {}
|
func (*AllocateResponse) ProtoMessage() {}
|
||||||
func (*AllocateResponse) Descriptor() ([]byte, []int) {
|
func (*AllocateResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_00212fb1f9d3bf1c, []int{9}
|
return fileDescriptor_00212fb1f9d3bf1c, []int{11}
|
||||||
}
|
}
|
||||||
func (m *AllocateResponse) XXX_Unmarshal(b []byte) error {
|
func (m *AllocateResponse) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
@ -565,7 +667,7 @@ type ContainerAllocateResponse struct {
|
|||||||
func (m *ContainerAllocateResponse) Reset() { *m = ContainerAllocateResponse{} }
|
func (m *ContainerAllocateResponse) Reset() { *m = ContainerAllocateResponse{} }
|
||||||
func (*ContainerAllocateResponse) ProtoMessage() {}
|
func (*ContainerAllocateResponse) ProtoMessage() {}
|
||||||
func (*ContainerAllocateResponse) Descriptor() ([]byte, []int) {
|
func (*ContainerAllocateResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_00212fb1f9d3bf1c, []int{10}
|
return fileDescriptor_00212fb1f9d3bf1c, []int{12}
|
||||||
}
|
}
|
||||||
func (m *ContainerAllocateResponse) XXX_Unmarshal(b []byte) error {
|
func (m *ContainerAllocateResponse) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
@ -638,7 +740,7 @@ type Mount struct {
|
|||||||
func (m *Mount) Reset() { *m = Mount{} }
|
func (m *Mount) Reset() { *m = Mount{} }
|
||||||
func (*Mount) ProtoMessage() {}
|
func (*Mount) ProtoMessage() {}
|
||||||
func (*Mount) Descriptor() ([]byte, []int) {
|
func (*Mount) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_00212fb1f9d3bf1c, []int{11}
|
return fileDescriptor_00212fb1f9d3bf1c, []int{13}
|
||||||
}
|
}
|
||||||
func (m *Mount) XXX_Unmarshal(b []byte) error {
|
func (m *Mount) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
@ -706,7 +808,7 @@ type DeviceSpec struct {
|
|||||||
func (m *DeviceSpec) Reset() { *m = DeviceSpec{} }
|
func (m *DeviceSpec) Reset() { *m = DeviceSpec{} }
|
||||||
func (*DeviceSpec) ProtoMessage() {}
|
func (*DeviceSpec) ProtoMessage() {}
|
||||||
func (*DeviceSpec) Descriptor() ([]byte, []int) {
|
func (*DeviceSpec) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_00212fb1f9d3bf1c, []int{12}
|
return fileDescriptor_00212fb1f9d3bf1c, []int{14}
|
||||||
}
|
}
|
||||||
func (m *DeviceSpec) XXX_Unmarshal(b []byte) error {
|
func (m *DeviceSpec) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
@ -761,6 +863,8 @@ func init() {
|
|||||||
proto.RegisterType((*RegisterRequest)(nil), "v1beta1.RegisterRequest")
|
proto.RegisterType((*RegisterRequest)(nil), "v1beta1.RegisterRequest")
|
||||||
proto.RegisterType((*Empty)(nil), "v1beta1.Empty")
|
proto.RegisterType((*Empty)(nil), "v1beta1.Empty")
|
||||||
proto.RegisterType((*ListAndWatchResponse)(nil), "v1beta1.ListAndWatchResponse")
|
proto.RegisterType((*ListAndWatchResponse)(nil), "v1beta1.ListAndWatchResponse")
|
||||||
|
proto.RegisterType((*TopologyInfo)(nil), "v1beta1.TopologyInfo")
|
||||||
|
proto.RegisterType((*NUMANode)(nil), "v1beta1.NUMANode")
|
||||||
proto.RegisterType((*Device)(nil), "v1beta1.Device")
|
proto.RegisterType((*Device)(nil), "v1beta1.Device")
|
||||||
proto.RegisterType((*PreStartContainerRequest)(nil), "v1beta1.PreStartContainerRequest")
|
proto.RegisterType((*PreStartContainerRequest)(nil), "v1beta1.PreStartContainerRequest")
|
||||||
proto.RegisterType((*PreStartContainerResponse)(nil), "v1beta1.PreStartContainerResponse")
|
proto.RegisterType((*PreStartContainerResponse)(nil), "v1beta1.PreStartContainerResponse")
|
||||||
@ -777,55 +881,59 @@ func init() {
|
|||||||
func init() { proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c) }
|
func init() { proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c) }
|
||||||
|
|
||||||
var fileDescriptor_00212fb1f9d3bf1c = []byte{
|
var fileDescriptor_00212fb1f9d3bf1c = []byte{
|
||||||
// 760 bytes of a gzipped FileDescriptorProto
|
// 824 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcd, 0x4e, 0xdb, 0x4a,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xdd, 0x8e, 0xdb, 0x44,
|
||||||
0x14, 0x8e, 0x13, 0xc8, 0xcf, 0x49, 0x80, 0x30, 0x20, 0x64, 0x0c, 0xd7, 0xca, 0xf5, 0xd5, 0xbd,
|
0x14, 0x8e, 0x93, 0xdd, 0x8d, 0x73, 0x92, 0xee, 0x66, 0x67, 0x4b, 0xe5, 0x75, 0x8b, 0x15, 0x06,
|
||||||
0xe2, 0x4a, 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0x90, 0xfe, 0x72, 0xda, 0xf7, 0xf8, 0xe2, 0xd1, 0x9c, 0xcf, 0xf9, 0x23, 0x15,
|
||||||
0x1d, 0xbd, 0x11, 0x27, 0x71, 0x10, 0x5f, 0x21, 0xcf, 0x38, 0x85, 0xb5, 0x16, 0x1e, 0xbb, 0x36,
|
0x9f, 0x2e, 0x5f, 0x29, 0x4b, 0x19, 0xea, 0x2b, 0xc5, 0xe1, 0x67, 0x70, 0x34, 0xa2, 0xab, 0xc0,
|
||||||
0x6e, 0x0f, 0x46, 0x7d, 0x97, 0x5c, 0x78, 0xdc, 0xa5, 0x84, 0xa1, 0x5d, 0x40, 0x9e, 0x8f, 0x3b,
|
0xa3, 0xe3, 0x70, 0x39, 0x0f, 0xd8, 0x8b, 0x48, 0x06, 0x9c, 0x09, 0xf4, 0x00, 0x50, 0x14, 0xd3,
|
||||||
0x8c, 0x5b, 0x3e, 0xef, 0xf8, 0xf8, 0xdd, 0xc8, 0xf5, 0x71, 0x4f, 0x55, 0x6a, 0xca, 0x4e, 0xd1,
|
0x89, 0x90, 0x6e, 0x2c, 0x27, 0x31, 0xfd, 0x79, 0x19, 0xc4, 0x74, 0x66, 0x19, 0x3d, 0xe3, 0xc4,
|
||||||
0xac, 0x7a, 0x3e, 0xbe, 0x0c, 0x02, 0x66, 0x84, 0x1b, 0x9f, 0x14, 0x58, 0x31, 0x71, 0xdf, 0x65,
|
0x24, 0xdd, 0x28, 0xa6, 0x97, 0x49, 0x80, 0x64, 0x7e, 0xfc, 0xbb, 0x01, 0x07, 0x84, 0xce, 0x03,
|
||||||
0x1c, 0xfb, 0x01, 0x88, 0x19, 0x47, 0x2a, 0x14, 0xc6, 0xd8, 0x67, 0x2e, 0x25, 0x82, 0x56, 0x32,
|
0x21, 0x69, 0x9c, 0x38, 0xa9, 0x90, 0xc8, 0x82, 0xe6, 0x8a, 0xc6, 0x22, 0xe0, 0x4c, 0xc1, 0x5a,
|
||||||
0xe5, 0x11, 0x69, 0x50, 0x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bb, 0x1d, 0xfd, 0x08, 0x00, 0x00, 0xff, 0xff,
|
0xb9, 0xbd, 0x4d, 0x8c, 0x71, 0xed, 0x13, 0x03, 0x0d, 0xc1, 0xd4, 0xeb, 0x56, 0xba, 0x55, 0xe5,
|
||||||
0xb9, 0xc2, 0x87, 0x92, 0x22, 0x07, 0x00, 0x00,
|
0xe5, 0xdb, 0xc7, 0x5b, 0x22, 0xba, 0x08, 0xfa, 0x11, 0x0e, 0xdf, 0x12, 0x2d, 0x54, 0xa8, 0xcf,
|
||||||
|
0x55, 0x62, 0x68, 0xe3, 0xeb, 0x52, 0x74, 0xf5, 0xaf, 0xee, 0xbd, 0x7e, 0xe3, 0x18, 0x7f, 0xbd,
|
||||||
|
0x71, 0x6a, 0xbf, 0x6c, 0x1c, 0xe3, 0xf5, 0xc6, 0x31, 0xfe, 0xdc, 0x38, 0xc6, 0xdf, 0x1b, 0xc7,
|
||||||
|
0xf8, 0xed, 0x1f, 0xa7, 0x36, 0xdd, 0x53, 0xff, 0xd8, 0xc7, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff,
|
||||||
|
0xe3, 0xb3, 0x5b, 0x04, 0xa8, 0x07, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reference imports to suppress errors if they are not otherwise used.
|
// Reference imports to suppress errors if they are not otherwise used.
|
||||||
@ -1287,6 +1395,69 @@ func (m *ListAndWatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||||||
return len(dAtA) - i, nil
|
return len(dAtA) - i, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *TopologyInfo) Marshal() (dAtA []byte, err error) {
|
||||||
|
size := m.Size()
|
||||||
|
dAtA = make([]byte, size)
|
||||||
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return dAtA[:n], nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *TopologyInfo) MarshalTo(dAtA []byte) (int, error) {
|
||||||
|
size := m.Size()
|
||||||
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *TopologyInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||||
|
i := len(dAtA)
|
||||||
|
_ = i
|
||||||
|
var l int
|
||||||
|
_ = l
|
||||||
|
if m.Node != nil {
|
||||||
|
{
|
||||||
|
size, err := m.Node.MarshalToSizedBuffer(dAtA[:i])
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
i -= size
|
||||||
|
i = encodeVarintApi(dAtA, i, uint64(size))
|
||||||
|
}
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0xa
|
||||||
|
}
|
||||||
|
return len(dAtA) - i, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *NUMANode) Marshal() (dAtA []byte, err error) {
|
||||||
|
size := m.Size()
|
||||||
|
dAtA = make([]byte, size)
|
||||||
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return dAtA[:n], nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *NUMANode) MarshalTo(dAtA []byte) (int, error) {
|
||||||
|
size := m.Size()
|
||||||
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *NUMANode) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||||
|
i := len(dAtA)
|
||||||
|
_ = i
|
||||||
|
var l int
|
||||||
|
_ = l
|
||||||
|
if m.ID != 0 {
|
||||||
|
i = encodeVarintApi(dAtA, i, uint64(m.ID))
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x8
|
||||||
|
}
|
||||||
|
return len(dAtA) - i, nil
|
||||||
|
}
|
||||||
|
|
||||||
func (m *Device) Marshal() (dAtA []byte, err error) {
|
func (m *Device) Marshal() (dAtA []byte, err error) {
|
||||||
size := m.Size()
|
size := m.Size()
|
||||||
dAtA = make([]byte, size)
|
dAtA = make([]byte, size)
|
||||||
@ -1307,6 +1478,18 @@ func (m *Device) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||||||
_ = i
|
_ = i
|
||||||
var l int
|
var l int
|
||||||
_ = l
|
_ = l
|
||||||
|
if m.Topology != nil {
|
||||||
|
{
|
||||||
|
size, err := m.Topology.MarshalToSizedBuffer(dAtA[:i])
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
i -= size
|
||||||
|
i = encodeVarintApi(dAtA, i, uint64(size))
|
||||||
|
}
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x1a
|
||||||
|
}
|
||||||
if len(m.Health) > 0 {
|
if len(m.Health) > 0 {
|
||||||
i -= len(m.Health)
|
i -= len(m.Health)
|
||||||
copy(dAtA[i:], m.Health)
|
copy(dAtA[i:], m.Health)
|
||||||
@ -1737,6 +1920,31 @@ func (m *ListAndWatchResponse) Size() (n int) {
|
|||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *TopologyInfo) Size() (n int) {
|
||||||
|
if m == nil {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
var l int
|
||||||
|
_ = l
|
||||||
|
if m.Node != nil {
|
||||||
|
l = m.Node.Size()
|
||||||
|
n += 1 + l + sovApi(uint64(l))
|
||||||
|
}
|
||||||
|
return n
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *NUMANode) Size() (n int) {
|
||||||
|
if m == nil {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
var l int
|
||||||
|
_ = l
|
||||||
|
if m.ID != 0 {
|
||||||
|
n += 1 + sovApi(uint64(m.ID))
|
||||||
|
}
|
||||||
|
return n
|
||||||
|
}
|
||||||
|
|
||||||
func (m *Device) Size() (n int) {
|
func (m *Device) Size() (n int) {
|
||||||
if m == nil {
|
if m == nil {
|
||||||
return 0
|
return 0
|
||||||
@ -1751,6 +1959,10 @@ func (m *Device) Size() (n int) {
|
|||||||
if l > 0 {
|
if l > 0 {
|
||||||
n += 1 + l + sovApi(uint64(l))
|
n += 1 + l + sovApi(uint64(l))
|
||||||
}
|
}
|
||||||
|
if m.Topology != nil {
|
||||||
|
l = m.Topology.Size()
|
||||||
|
n += 1 + l + sovApi(uint64(l))
|
||||||
|
}
|
||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1954,6 +2166,26 @@ func (this *ListAndWatchResponse) String() string {
|
|||||||
}, "")
|
}, "")
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
func (this *TopologyInfo) String() string {
|
||||||
|
if this == nil {
|
||||||
|
return "nil"
|
||||||
|
}
|
||||||
|
s := strings.Join([]string{`&TopologyInfo{`,
|
||||||
|
`Node:` + strings.Replace(this.Node.String(), "NUMANode", "NUMANode", 1) + `,`,
|
||||||
|
`}`,
|
||||||
|
}, "")
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (this *NUMANode) String() string {
|
||||||
|
if this == nil {
|
||||||
|
return "nil"
|
||||||
|
}
|
||||||
|
s := strings.Join([]string{`&NUMANode{`,
|
||||||
|
`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
|
||||||
|
`}`,
|
||||||
|
}, "")
|
||||||
|
return s
|
||||||
|
}
|
||||||
func (this *Device) String() string {
|
func (this *Device) String() string {
|
||||||
if this == nil {
|
if this == nil {
|
||||||
return "nil"
|
return "nil"
|
||||||
@ -1961,6 +2193,7 @@ func (this *Device) String() string {
|
|||||||
s := strings.Join([]string{`&Device{`,
|
s := strings.Join([]string{`&Device{`,
|
||||||
`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
|
`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
|
||||||
`Health:` + fmt.Sprintf("%v", this.Health) + `,`,
|
`Health:` + fmt.Sprintf("%v", this.Health) + `,`,
|
||||||
|
`Topology:` + strings.Replace(this.Topology.String(), "TopologyInfo", "TopologyInfo", 1) + `,`,
|
||||||
`}`,
|
`}`,
|
||||||
}, "")
|
}, "")
|
||||||
return s
|
return s
|
||||||
@ -2497,6 +2730,167 @@ func (m *ListAndWatchResponse) Unmarshal(dAtA []byte) error {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
func (m *TopologyInfo) Unmarshal(dAtA []byte) error {
|
||||||
|
l := len(dAtA)
|
||||||
|
iNdEx := 0
|
||||||
|
for iNdEx < l {
|
||||||
|
preIndex := iNdEx
|
||||||
|
var wire uint64
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowApi
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := dAtA[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
wire |= uint64(b&0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fieldNum := int32(wire >> 3)
|
||||||
|
wireType := int(wire & 0x7)
|
||||||
|
if wireType == 4 {
|
||||||
|
return fmt.Errorf("proto: TopologyInfo: wiretype end group for non-group")
|
||||||
|
}
|
||||||
|
if fieldNum <= 0 {
|
||||||
|
return fmt.Errorf("proto: TopologyInfo: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||||
|
}
|
||||||
|
switch fieldNum {
|
||||||
|
case 1:
|
||||||
|
if wireType != 2 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field Node", wireType)
|
||||||
|
}
|
||||||
|
var msglen int
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowApi
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := dAtA[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
msglen |= int(b&0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if msglen < 0 {
|
||||||
|
return ErrInvalidLengthApi
|
||||||
|
}
|
||||||
|
postIndex := iNdEx + msglen
|
||||||
|
if postIndex < 0 {
|
||||||
|
return ErrInvalidLengthApi
|
||||||
|
}
|
||||||
|
if postIndex > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
if m.Node == nil {
|
||||||
|
m.Node = &NUMANode{}
|
||||||
|
}
|
||||||
|
if err := m.Node.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
iNdEx = postIndex
|
||||||
|
default:
|
||||||
|
iNdEx = preIndex
|
||||||
|
skippy, err := skipApi(dAtA[iNdEx:])
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthApi
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) < 0 {
|
||||||
|
return ErrInvalidLengthApi
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
iNdEx += skippy
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if iNdEx > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
func (m *NUMANode) Unmarshal(dAtA []byte) error {
|
||||||
|
l := len(dAtA)
|
||||||
|
iNdEx := 0
|
||||||
|
for iNdEx < l {
|
||||||
|
preIndex := iNdEx
|
||||||
|
var wire uint64
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowApi
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := dAtA[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
wire |= uint64(b&0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fieldNum := int32(wire >> 3)
|
||||||
|
wireType := int(wire & 0x7)
|
||||||
|
if wireType == 4 {
|
||||||
|
return fmt.Errorf("proto: NUMANode: wiretype end group for non-group")
|
||||||
|
}
|
||||||
|
if fieldNum <= 0 {
|
||||||
|
return fmt.Errorf("proto: NUMANode: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||||
|
}
|
||||||
|
switch fieldNum {
|
||||||
|
case 1:
|
||||||
|
if wireType != 0 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
|
||||||
|
}
|
||||||
|
m.ID = 0
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowApi
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := dAtA[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
m.ID |= int64(b&0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
iNdEx = preIndex
|
||||||
|
skippy, err := skipApi(dAtA[iNdEx:])
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthApi
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) < 0 {
|
||||||
|
return ErrInvalidLengthApi
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
iNdEx += skippy
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if iNdEx > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
func (m *Device) Unmarshal(dAtA []byte) error {
|
func (m *Device) Unmarshal(dAtA []byte) error {
|
||||||
l := len(dAtA)
|
l := len(dAtA)
|
||||||
iNdEx := 0
|
iNdEx := 0
|
||||||
@ -2590,6 +2984,42 @@ func (m *Device) Unmarshal(dAtA []byte) error {
|
|||||||
}
|
}
|
||||||
m.Health = string(dAtA[iNdEx:postIndex])
|
m.Health = string(dAtA[iNdEx:postIndex])
|
||||||
iNdEx = postIndex
|
iNdEx = postIndex
|
||||||
|
case 3:
|
||||||
|
if wireType != 2 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field Topology", wireType)
|
||||||
|
}
|
||||||
|
var msglen int
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowApi
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := dAtA[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
msglen |= int(b&0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if msglen < 0 {
|
||||||
|
return ErrInvalidLengthApi
|
||||||
|
}
|
||||||
|
postIndex := iNdEx + msglen
|
||||||
|
if postIndex < 0 {
|
||||||
|
return ErrInvalidLengthApi
|
||||||
|
}
|
||||||
|
if postIndex > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
if m.Topology == nil {
|
||||||
|
m.Topology = &TopologyInfo{}
|
||||||
|
}
|
||||||
|
if err := m.Topology.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
iNdEx = postIndex
|
||||||
default:
|
default:
|
||||||
iNdEx = preIndex
|
iNdEx = preIndex
|
||||||
skippy, err := skipApi(dAtA[iNdEx:])
|
skippy, err := skipApi(dAtA[iNdEx:])
|
||||||
|
@ -73,10 +73,21 @@ message ListAndWatchResponse {
|
|||||||
repeated Device devices = 1;
|
repeated Device devices = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message TopologyInfo {
|
||||||
|
NUMANode node = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message NUMANode {
|
||||||
|
int64 ID = 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* E.g:
|
/* E.g:
|
||||||
* struct Device {
|
* struct Device {
|
||||||
* ID: "GPU-fef8089b-4820-abfc-e83e-94318197576e",
|
* ID: "GPU-fef8089b-4820-abfc-e83e-94318197576e",
|
||||||
* State: "Healthy",
|
* State: "Healthy",
|
||||||
|
* Topology:
|
||||||
|
* Node:
|
||||||
|
ID: 1
|
||||||
*} */
|
*} */
|
||||||
message Device {
|
message Device {
|
||||||
// A unique ID assigned by the device plugin used
|
// A unique ID assigned by the device plugin used
|
||||||
@ -85,6 +96,8 @@ message Device {
|
|||||||
string ID = 1;
|
string ID = 1;
|
||||||
// Health of the device, can be healthy or unhealthy, see constants.go
|
// Health of the device, can be healthy or unhealthy, see constants.go
|
||||||
string health = 2;
|
string health = 2;
|
||||||
|
// Topology for device
|
||||||
|
TopologyInfo topology = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
// - PreStartContainer is expected to be called before each container start if indicated by plugin during registration phase.
|
// - PreStartContainer is expected to be called before each container start if indicated by plugin during registration phase.
|
||||||
|
Loading…
Reference in New Issue
Block a user