Skip to content

Commit

Permalink
Merge pull request #4 from kubewharf/sjy/pod-resources-server-fix
Browse files Browse the repository at this point in the history
style(qrm): update custom pod resources server api property index
  • Loading branch information
csfldf authored Jan 13, 2023
2 parents 4e01765 + 2de2c41 commit 29cb56e
Showing 1 changed file with 94 additions and 84 deletions.
178 changes: 94 additions & 84 deletions releases/1.24/patches/0002-KubeWharf-FEATURE-qos-resource-manager
Original file line number Diff line number Diff line change
Expand Up @@ -6568,7 +6568,7 @@ index 7708f758fa2..5d6387af557 100644
+ ResourcePlugin = "ResourcePlugin"
)
diff --git a/staging/src/k8s.io/kubelet/pkg/apis/podresources/v1/api.pb.go b/staging/src/k8s.io/kubelet/pkg/apis/podresources/v1/api.pb.go
index ac0924b2b16..d178c9be619 100644
index ac0924b2b16..19b893ea949 100644
--- a/staging/src/k8s.io/kubelet/pkg/apis/podresources/v1/api.pb.go
+++ b/staging/src/k8s.io/kubelet/pkg/apis/podresources/v1/api.pb.go
@@ -21,9 +21,11 @@ package v1
Expand All @@ -6595,7 +6595,7 @@ index ac0924b2b16..d178c9be619 100644
+ Devices []*ContainerDevices `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"`
+ CpuIds []int64 `protobuf:"varint,2,rep,packed,name=cpu_ids,json=cpuIds,proto3" json:"cpu_ids,omitempty"`
+ Memory []*ContainerMemory `protobuf:"bytes,3,rep,name=memory,proto3" json:"memory,omitempty"`
+ Resources []*AllocatableTopologyAwareResource `protobuf:"bytes,4,rep,name=resources,proto3" json:"resources,omitempty"`
+ Resources []*AllocatableTopologyAwareResource `protobuf:"bytes,15,rep,name=resources,proto3" json:"resources,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_sizecache int32 `json:"-"`
}
Expand Down Expand Up @@ -6679,7 +6679,7 @@ index ac0924b2b16..d178c9be619 100644
+ Devices []*ContainerDevices `protobuf:"bytes,2,rep,name=devices,proto3" json:"devices,omitempty"`
+ CpuIds []int64 `protobuf:"varint,3,rep,packed,name=cpu_ids,json=cpuIds,proto3" json:"cpu_ids,omitempty"`
+ Memory []*ContainerMemory `protobuf:"bytes,4,rep,name=memory,proto3" json:"memory,omitempty"`
+ Resources []*TopologyAwareResource `protobuf:"bytes,5,rep,name=resources,proto3" json:"resources,omitempty"`
+ Resources []*TopologyAwareResource `protobuf:"bytes,15,rep,name=resources,proto3" json:"resources,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_sizecache int32 `json:"-"`
}
Expand Down Expand Up @@ -7019,67 +7019,67 @@ index ac0924b2b16..d178c9be619 100644
- 0x71, 0x69, 0xa3, 0x5f, 0x97, 0xf6, 0xc6, 0xe7, 0x99, 0x8d, 0x2e, 0x66, 0x36, 0xfa, 0x39, 0xb3,
- 0xd1, 0xef, 0x99, 0x8d, 0xbe, 0xfe, 0xb1, 0x37, 0x06, 0x65, 0xfd, 0xd8, 0x3c, 0xfd, 0x1b, 0x00,
- 0x00, 0xff, 0xff, 0x43, 0x46, 0x5d, 0x7f, 0xac, 0x04, 0x00, 0x00,
+ // 952 bytes of a gzipped FileDescriptorProto
+ // 950 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xcd, 0x6e, 0xdb, 0x46,
+ 0x10, 0x36, 0x45, 0xfd, 0x58, 0x63, 0xc5, 0x15, 0x36, 0x69, 0x4d, 0x2b, 0xb2, 0xac, 0xb0, 0x31,
+ 0x10, 0x36, 0x45, 0xfd, 0x58, 0x63, 0xc5, 0x11, 0x36, 0x69, 0x4d, 0x2b, 0xb2, 0xac, 0xb0, 0x31,
+ 0x20, 0xa0, 0xa9, 0x8c, 0xb8, 0xff, 0x3d, 0x14, 0x51, 0xec, 0xb6, 0x30, 0x90, 0x18, 0x0d, 0xeb,
+ 0xf6, 0xd0, 0x43, 0x89, 0x15, 0xb9, 0x51, 0x09, 0xd3, 0x5c, 0x9a, 0xbb, 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0xd8, 0xe3, 0xff, 0xfb, 0x96, 0x20, 0x7c, 0xf2, 0xed, 0xb3,
+ 0x91, 0x1c, 0x10, 0xe5, 0x32, 0x3b, 0xb0, 0x1e, 0x9b, 0xd0, 0x26, 0x54, 0x8e, 0x8f, 0x64, 0x39,
+ 0xdd, 0xaa, 0x1c, 0x1f, 0x1d, 0xfc, 0xa9, 0x01, 0xca, 0xfe, 0x07, 0x0a, 0xe2, 0x24, 0x42, 0x87,
+ 0x50, 0x95, 0x8a, 0xdf, 0x13, 0xf9, 0x96, 0xbc, 0x47, 0x3a, 0xdd, 0x72, 0xa7, 0x7a, 0x91, 0x98,
+ 0x6b, 0xe8, 0x07, 0xd8, 0xfa, 0x8a, 0xf0, 0xb2, 0x77, 0x1a, 0xda, 0xcd, 0x3d, 0x8b, 0x0a, 0xb9,
+ 0xfb, 0xcb, 0x01, 0x71, 0xfe, 0x27, 0xdd, 0x97, 0x6f, 0x7a, 0xda, 0xeb, 0x37, 0xbd, 0xb5, 0x5f,
+ 0xae, 0x7a, 0xda, 0xcb, 0xab, 0x9e, 0xf6, 0xea, 0xaa, 0xa7, 0xfd, 0x7d, 0xd5, 0xd3, 0x7e, 0xff,
+ 0xa7, 0xb7, 0x36, 0xae, 0xcb, 0x97, 0xe4, 0xfb, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xfd, 0xa0,
+ 0xcf, 0x23, 0x89, 0x0a, 0x00, 0x00,
}

// Reference imports to suppress errors if they are not otherwise used.
Expand All @@ -7098,7 +7098,7 @@ index ac0924b2b16..d178c9be619 100644
+ i = encodeVarintApi(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ dAtA[i] = 0x7a
+ }
+ }
if len(m.Memory) > 0 {
Expand Down Expand Up @@ -7189,7 +7189,7 @@ index ac0924b2b16..d178c9be619 100644
+ i = encodeVarintApi(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x2a
+ dAtA[i] = 0x7a
+ }
+ }
if len(m.Memory) > 0 {
Expand Down Expand Up @@ -7230,14 +7230,14 @@ index ac0924b2b16..d178c9be619 100644
if err != nil {
return 0, err
}
@@ -1155,13 +1557,227 @@ func (m *TopologyInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
@@ -1155,13 +1557,66 @@ func (m *TopologyInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i = encodeVarintApi(dAtA, i, uint64(size))
}
i--
- dAtA[i] = 0xa
+ dAtA[i] = 0x3a
+ }
+ }
}
}
+ if len(m.TopologyAwareQuantityList) > 0 {
+ for iNdEx := len(m.TopologyAwareQuantityList) - 1; iNdEx >= 0; iNdEx-- {
+ {
Expand Down Expand Up @@ -7280,7 +7280,7 @@ index ac0924b2b16..d178c9be619 100644
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
}
+ }
+ i--
+ dAtA[i] = 0x10
+ }
Expand All @@ -7290,21 +7290,20 @@ index ac0924b2b16..d178c9be619 100644
+ i = encodeVarintApi(dAtA, i, uint64(len(m.ResourceName)))
+ i--
+ dAtA[i] = 0xa
}
+ }
return len(dAtA) - i, nil
}

-func (m *NUMANode) Marshal() (dAtA []byte, err error) {
+func (m *AllocatableTopologyAwareResource) 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
+}
+
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -1171,7 +1626,168 @@ func (m *NUMANode) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}

-func (m *NUMANode) MarshalTo(dAtA []byte) (int, error) {
+func (m *AllocatableTopologyAwareResource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
Expand Down Expand Up @@ -7457,9 +7456,19 @@ index ac0924b2b16..d178c9be619 100644
+}
+
+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()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
return m.MarshalToSizedBuffer(dAtA[:size])
}
@@ -1234,6 +1850,12 @@ func (m *AllocatableResourcesResponse) Size() (n int) {
n += 1 + l + sovApi(uint64(l))
}
Expand Down Expand Up @@ -7768,7 +7777,7 @@ index ac0924b2b16..d178c9be619 100644
- skippy, err := skipApi(dAtA[iNdEx:])
- if err != nil {
- return err
+ case 4:
+ case 15:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
}
Expand Down Expand Up @@ -8164,12 +8173,13 @@ index ac0924b2b16..d178c9be619 100644
- skippy, err := skipApi(dAtA[iNdEx:])
- if err != nil {
- return err
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
}
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthApi
+ case 15:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
Expand Down Expand Up @@ -8723,14 +8733,14 @@ index ac0924b2b16..d178c9be619 100644
l := len(dAtA)
iNdEx := 0
diff --git a/staging/src/k8s.io/kubelet/pkg/apis/podresources/v1/api.proto b/staging/src/k8s.io/kubelet/pkg/apis/podresources/v1/api.proto
index add2aad4874..d3610d2a853 100644
index add2aad4874..115ef896608 100644
--- a/staging/src/k8s.io/kubelet/pkg/apis/podresources/v1/api.proto
+++ b/staging/src/k8s.io/kubelet/pkg/apis/podresources/v1/api.proto
@@ -28,6 +28,7 @@ message AllocatableResourcesResponse {
repeated ContainerDevices devices = 1;
repeated int64 cpu_ids = 2;
repeated ContainerMemory memory = 3;
+ repeated AllocatableTopologyAwareResource resources = 4;
+ repeated AllocatableTopologyAwareResource resources = 15;
}

// ListPodResourcesRequest is the request made to the PodResourcesLister service
Expand All @@ -8751,7 +8761,7 @@ index add2aad4874..d3610d2a853 100644
repeated ContainerDevices devices = 2;
repeated int64 cpu_ids = 3;
repeated ContainerMemory memory = 4;
+ repeated TopologyAwareResource resources = 5;
+ repeated TopologyAwareResource resources = 15;
}

// ContainerMemory contains information about memory and hugepages assigned to a container
Expand Down

0 comments on commit 29cb56e

Please sign in to comment.