mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-02-18 18:28:18 -05:00
Generated files from API changes
This commit is contained in:
parent
efc3126b76
commit
b8777c3263
18 changed files with 422 additions and 1 deletions
11
api/openapi-spec/swagger.json
generated
11
api/openapi-spec/swagger.json
generated
|
|
@ -10320,6 +10320,13 @@
|
|||
"io.k8s.api.core.v1.PodStatus": {
|
||||
"description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.",
|
||||
"properties": {
|
||||
"allocatedResources": {
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity"
|
||||
},
|
||||
"description": "AllocatedResources is the total requests allocated for this pod by the node. If pod-level requests are not set, this will be the total requests aggregated across containers in the pod.",
|
||||
"type": "object"
|
||||
},
|
||||
"conditions": {
|
||||
"description": "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions",
|
||||
"items": {
|
||||
|
|
@ -10434,6 +10441,10 @@
|
|||
"x-kubernetes-patch-merge-key": "name",
|
||||
"x-kubernetes-patch-strategy": "merge,retainKeys"
|
||||
},
|
||||
"resources": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements",
|
||||
"description": "Resources represents the compute resource requests and limits that have been applied at the pod level if pod-level requests or limits are set in PodSpec.Resources"
|
||||
},
|
||||
"startTime": {
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time",
|
||||
"description": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod."
|
||||
|
|
|
|||
15
api/openapi-spec/v3/api__v1_openapi.json
generated
15
api/openapi-spec/v3/api__v1_openapi.json
generated
|
|
@ -6072,6 +6072,13 @@
|
|||
"io.k8s.api.core.v1.PodStatus": {
|
||||
"description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.",
|
||||
"properties": {
|
||||
"allocatedResources": {
|
||||
"additionalProperties": {
|
||||
"$ref": "#/components/schemas/io.k8s.apimachinery.pkg.api.resource.Quantity"
|
||||
},
|
||||
"description": "AllocatedResources is the total requests allocated for this pod by the node. If pod-level requests are not set, this will be the total requests aggregated across containers in the pod.",
|
||||
"type": "object"
|
||||
},
|
||||
"conditions": {
|
||||
"description": "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions",
|
||||
"items": {
|
||||
|
|
@ -6225,6 +6232,14 @@
|
|||
"x-kubernetes-patch-merge-key": "name",
|
||||
"x-kubernetes-patch-strategy": "merge,retainKeys"
|
||||
},
|
||||
"resources": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.ResourceRequirements"
|
||||
}
|
||||
],
|
||||
"description": "Resources represents the compute resource requests and limits that have been applied at the pod level if pod-level requests or limits are set in PodSpec.Resources"
|
||||
},
|
||||
"startTime": {
|
||||
"allOf": [
|
||||
{
|
||||
|
|
|
|||
4
pkg/apis/core/v1/zz_generated.conversion.go
generated
4
pkg/apis/core/v1/zz_generated.conversion.go
generated
|
|
@ -7097,6 +7097,8 @@ func autoConvert_v1_PodStatus_To_core_PodStatus(in *corev1.PodStatus, out *core.
|
|||
out.Resize = core.PodResizeStatus(in.Resize)
|
||||
out.ResourceClaimStatuses = *(*[]core.PodResourceClaimStatus)(unsafe.Pointer(&in.ResourceClaimStatuses))
|
||||
out.ExtendedResourceClaimStatus = (*core.PodExtendedResourceClaimStatus)(unsafe.Pointer(in.ExtendedResourceClaimStatus))
|
||||
out.AllocatedResources = *(*core.ResourceList)(unsafe.Pointer(&in.AllocatedResources))
|
||||
out.Resources = (*core.ResourceRequirements)(unsafe.Pointer(in.Resources))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
@ -7118,6 +7120,8 @@ func autoConvert_core_PodStatus_To_v1_PodStatus(in *core.PodStatus, out *corev1.
|
|||
out.Resize = corev1.PodResizeStatus(in.Resize)
|
||||
out.ResourceClaimStatuses = *(*[]corev1.PodResourceClaimStatus)(unsafe.Pointer(&in.ResourceClaimStatuses))
|
||||
out.ExtendedResourceClaimStatus = (*corev1.PodExtendedResourceClaimStatus)(unsafe.Pointer(in.ExtendedResourceClaimStatus))
|
||||
out.AllocatedResources = *(*corev1.ResourceList)(unsafe.Pointer(&in.AllocatedResources))
|
||||
out.Resources = (*corev1.ResourceRequirements)(unsafe.Pointer(in.Resources))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
10
pkg/apis/core/v1/zz_generated.defaults.go
generated
10
pkg/apis/core/v1/zz_generated.defaults.go
generated
|
|
@ -546,6 +546,11 @@ func SetObjectDefaults_Pod(in *corev1.Pod) {
|
|||
SetDefaults_ResourceList(&a.Resources.Requests)
|
||||
}
|
||||
}
|
||||
SetDefaults_ResourceList(&in.Status.AllocatedResources)
|
||||
if in.Status.Resources != nil {
|
||||
SetDefaults_ResourceList(&in.Status.Resources.Limits)
|
||||
SetDefaults_ResourceList(&in.Status.Resources.Requests)
|
||||
}
|
||||
}
|
||||
|
||||
func SetObjectDefaults_PodList(in *corev1.PodList) {
|
||||
|
|
@ -584,6 +589,11 @@ func SetObjectDefaults_PodStatusResult(in *corev1.PodStatusResult) {
|
|||
SetDefaults_ResourceList(&a.Resources.Requests)
|
||||
}
|
||||
}
|
||||
SetDefaults_ResourceList(&in.Status.AllocatedResources)
|
||||
if in.Status.Resources != nil {
|
||||
SetDefaults_ResourceList(&in.Status.Resources.Limits)
|
||||
SetDefaults_ResourceList(&in.Status.Resources.Requests)
|
||||
}
|
||||
}
|
||||
|
||||
func SetObjectDefaults_PodTemplate(in *corev1.PodTemplate) {
|
||||
|
|
|
|||
12
pkg/apis/core/zz_generated.deepcopy.go
generated
12
pkg/apis/core/zz_generated.deepcopy.go
generated
|
|
@ -4646,6 +4646,18 @@ func (in *PodStatus) DeepCopyInto(out *PodStatus) {
|
|||
*out = new(PodExtendedResourceClaimStatus)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
if in.AllocatedResources != nil {
|
||||
in, out := &in.AllocatedResources, &out.AllocatedResources
|
||||
*out = make(ResourceList, len(*in))
|
||||
for key, val := range *in {
|
||||
(*out)[key] = val.DeepCopy()
|
||||
}
|
||||
}
|
||||
if in.Resources != nil {
|
||||
in, out := &in.Resources, &out.Resources
|
||||
*out = new(ResourceRequirements)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
22
pkg/generated/openapi/zz_generated.openapi.go
generated
22
pkg/generated/openapi/zz_generated.openapi.go
generated
|
|
@ -30471,11 +30471,31 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope
|
|||
Ref: ref(corev1.PodExtendedResourceClaimStatus{}.OpenAPIModelName()),
|
||||
},
|
||||
},
|
||||
"allocatedResources": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "AllocatedResources is the total requests allocated for this pod by the node. If pod-level requests are not set, this will be the total requests aggregated across containers in the pod.",
|
||||
Type: []string{"object"},
|
||||
AdditionalProperties: &spec.SchemaOrBool{
|
||||
Allows: true,
|
||||
Schema: &spec.Schema{
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Ref: ref(resource.Quantity{}.OpenAPIModelName()),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"resources": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Resources represents the compute resource requests and limits that have been applied at the pod level if pod-level requests or limits are set in PodSpec.Resources",
|
||||
Ref: ref(corev1.ResourceRequirements{}.OpenAPIModelName()),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
Dependencies: []string{
|
||||
corev1.ContainerStatus{}.OpenAPIModelName(), corev1.HostIP{}.OpenAPIModelName(), corev1.PodCondition{}.OpenAPIModelName(), corev1.PodExtendedResourceClaimStatus{}.OpenAPIModelName(), corev1.PodIP{}.OpenAPIModelName(), corev1.PodResourceClaimStatus{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()},
|
||||
corev1.ContainerStatus{}.OpenAPIModelName(), corev1.HostIP{}.OpenAPIModelName(), corev1.PodCondition{}.OpenAPIModelName(), corev1.PodExtendedResourceClaimStatus{}.OpenAPIModelName(), corev1.PodIP{}.OpenAPIModelName(), corev1.PodResourceClaimStatus{}.OpenAPIModelName(), corev1.ResourceRequirements{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
235
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
235
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
|
|
@ -10150,6 +10150,51 @@ func (m *PodStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
_ = i
|
||||
var l int
|
||||
_ = l
|
||||
if m.Resources != nil {
|
||||
{
|
||||
size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x1
|
||||
i--
|
||||
dAtA[i] = 0xa2
|
||||
}
|
||||
if len(m.AllocatedResources) > 0 {
|
||||
keysForAllocatedResources := make([]string, 0, len(m.AllocatedResources))
|
||||
for k := range m.AllocatedResources {
|
||||
keysForAllocatedResources = append(keysForAllocatedResources, string(k))
|
||||
}
|
||||
sort.Strings(keysForAllocatedResources)
|
||||
for iNdEx := len(keysForAllocatedResources) - 1; iNdEx >= 0; iNdEx-- {
|
||||
v := m.AllocatedResources[ResourceName(keysForAllocatedResources[iNdEx])]
|
||||
baseI := i
|
||||
{
|
||||
size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
i -= len(keysForAllocatedResources[iNdEx])
|
||||
copy(dAtA[i:], keysForAllocatedResources[iNdEx])
|
||||
i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAllocatedResources[iNdEx])))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
|
||||
i--
|
||||
dAtA[i] = 0x1
|
||||
i--
|
||||
dAtA[i] = 0x9a
|
||||
}
|
||||
}
|
||||
if m.ExtendedResourceClaimStatus != nil {
|
||||
{
|
||||
size, err := m.ExtendedResourceClaimStatus.MarshalToSizedBuffer(dAtA[:i])
|
||||
|
|
@ -18570,6 +18615,19 @@ func (m *PodStatus) Size() (n int) {
|
|||
l = m.ExtendedResourceClaimStatus.Size()
|
||||
n += 2 + l + sovGenerated(uint64(l))
|
||||
}
|
||||
if len(m.AllocatedResources) > 0 {
|
||||
for k, v := range m.AllocatedResources {
|
||||
_ = k
|
||||
_ = v
|
||||
l = v.Size()
|
||||
mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
|
||||
n += mapEntrySize + 2 + sovGenerated(uint64(mapEntrySize))
|
||||
}
|
||||
}
|
||||
if m.Resources != nil {
|
||||
l = m.Resources.Size()
|
||||
n += 2 + l + sovGenerated(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
|
|
@ -22944,6 +23002,16 @@ func (this *PodStatus) String() string {
|
|||
repeatedStringForHostIPs += strings.Replace(strings.Replace(f.String(), "HostIP", "HostIP", 1), `&`, ``, 1) + ","
|
||||
}
|
||||
repeatedStringForHostIPs += "}"
|
||||
keysForAllocatedResources := make([]string, 0, len(this.AllocatedResources))
|
||||
for k := range this.AllocatedResources {
|
||||
keysForAllocatedResources = append(keysForAllocatedResources, string(k))
|
||||
}
|
||||
sort.Strings(keysForAllocatedResources)
|
||||
mapStringForAllocatedResources := "ResourceList{"
|
||||
for _, k := range keysForAllocatedResources {
|
||||
mapStringForAllocatedResources += fmt.Sprintf("%v: %v,", k, this.AllocatedResources[ResourceName(k)])
|
||||
}
|
||||
mapStringForAllocatedResources += "}"
|
||||
s := strings.Join([]string{`&PodStatus{`,
|
||||
`Phase:` + fmt.Sprintf("%v", this.Phase) + `,`,
|
||||
`Conditions:` + repeatedStringForConditions + `,`,
|
||||
|
|
@ -22963,6 +23031,8 @@ func (this *PodStatus) String() string {
|
|||
`HostIPs:` + repeatedStringForHostIPs + `,`,
|
||||
`ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`,
|
||||
`ExtendedResourceClaimStatus:` + strings.Replace(this.ExtendedResourceClaimStatus.String(), "PodExtendedResourceClaimStatus", "PodExtendedResourceClaimStatus", 1) + `,`,
|
||||
`AllocatedResources:` + mapStringForAllocatedResources + `,`,
|
||||
`Resources:` + strings.Replace(this.Resources.String(), "ResourceRequirements", "ResourceRequirements", 1) + `,`,
|
||||
`}`,
|
||||
}, "")
|
||||
return s
|
||||
|
|
@ -55402,6 +55472,171 @@ func (m *PodStatus) Unmarshal(dAtA []byte) error {
|
|||
return err
|
||||
}
|
||||
iNdEx = postIndex
|
||||
case 19:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field AllocatedResources", wireType)
|
||||
}
|
||||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowGenerated
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthGenerated
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthGenerated
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.AllocatedResources == nil {
|
||||
m.AllocatedResources = make(ResourceList)
|
||||
}
|
||||
var mapkey ResourceName
|
||||
mapvalue := &resource.Quantity{}
|
||||
for iNdEx < postIndex {
|
||||
entryPreIndex := iNdEx
|
||||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowGenerated
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
fieldNum := int32(wire >> 3)
|
||||
if fieldNum == 1 {
|
||||
var stringLenmapkey uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowGenerated
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLenmapkey |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
intStringLenmapkey := int(stringLenmapkey)
|
||||
if intStringLenmapkey < 0 {
|
||||
return ErrInvalidLengthGenerated
|
||||
}
|
||||
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
||||
if postStringIndexmapkey < 0 {
|
||||
return ErrInvalidLengthGenerated
|
||||
}
|
||||
if postStringIndexmapkey > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
mapkey = ResourceName(dAtA[iNdEx:postStringIndexmapkey])
|
||||
iNdEx = postStringIndexmapkey
|
||||
} else if fieldNum == 2 {
|
||||
var mapmsglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowGenerated
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
mapmsglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
if mapmsglen < 0 {
|
||||
return ErrInvalidLengthGenerated
|
||||
}
|
||||
postmsgIndex := iNdEx + mapmsglen
|
||||
if postmsgIndex < 0 {
|
||||
return ErrInvalidLengthGenerated
|
||||
}
|
||||
if postmsgIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
mapvalue = &resource.Quantity{}
|
||||
if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
|
||||
return err
|
||||
}
|
||||
iNdEx = postmsgIndex
|
||||
} else {
|
||||
iNdEx = entryPreIndex
|
||||
skippy, err := skipGenerated(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
||||
return ErrInvalidLengthGenerated
|
||||
}
|
||||
if (iNdEx + skippy) > postIndex {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
m.AllocatedResources[ResourceName(mapkey)] = *mapvalue
|
||||
iNdEx = postIndex
|
||||
case 20:
|
||||
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 {
|
||||
return ErrIntOverflowGenerated
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthGenerated
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthGenerated
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.Resources == nil {
|
||||
m.Resources = &ResourceRequirements{}
|
||||
}
|
||||
if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
}
|
||||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipGenerated(dAtA[iNdEx:])
|
||||
|
|
|
|||
|
|
@ -4909,6 +4909,20 @@ message PodStatus {
|
|||
// +featureGate=DRAExtendedResource
|
||||
// +optional
|
||||
optional PodExtendedResourceClaimStatus extendedResourceClaimStatus = 18;
|
||||
|
||||
// AllocatedResources is the total requests allocated for this pod by the node.
|
||||
// If pod-level requests are not set, this will be the total requests aggregated
|
||||
// across containers in the pod.
|
||||
// +featureGate=InPlacePodLevelResourcesVerticalScaling
|
||||
// +optional
|
||||
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19;
|
||||
|
||||
// Resources represents the compute resource requests and limits that have been
|
||||
// applied at the pod level if pod-level requests or limits are set in
|
||||
// PodSpec.Resources
|
||||
// +featureGate=InPlacePodLevelResourcesVerticalScaling
|
||||
// +optional
|
||||
optional ResourceRequirements resources = 20;
|
||||
}
|
||||
|
||||
// PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded
|
||||
|
|
|
|||
|
|
@ -1951,6 +1951,8 @@ var map_PodStatus = map[string]string{
|
|||
"resize": "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\" Deprecated: Resize status is moved to two pod conditions PodResizePending and PodResizeInProgress. PodResizePending will track states where the spec has been resized, but the Kubelet has not yet allocated the resources. PodResizeInProgress will track in-progress resizes, and should be present whenever allocated resources != acknowledged resources.",
|
||||
"resourceClaimStatuses": "Status of resource claims.",
|
||||
"extendedResourceClaimStatus": "Status of extended resource claim backed by DRA.",
|
||||
"allocatedResources": "AllocatedResources is the total requests allocated for this pod by the node. If pod-level requests are not set, this will be the total requests aggregated across containers in the pod.",
|
||||
"resources": "Resources represents the compute resource requests and limits that have been applied at the pod level if pod-level requests or limits are set in PodSpec.Resources",
|
||||
}
|
||||
|
||||
func (PodStatus) SwaggerDoc() map[string]string {
|
||||
|
|
|
|||
|
|
@ -4644,6 +4644,18 @@ func (in *PodStatus) DeepCopyInto(out *PodStatus) {
|
|||
*out = new(PodExtendedResourceClaimStatus)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
if in.AllocatedResources != nil {
|
||||
in, out := &in.AllocatedResources, &out.AllocatedResources
|
||||
*out = make(ResourceList, len(*in))
|
||||
for key, val := range *in {
|
||||
(*out)[key] = val.DeepCopy()
|
||||
}
|
||||
}
|
||||
if in.Resources != nil {
|
||||
in, out := &in.Resources, &out.Resources
|
||||
*out = new(ResourceRequirements)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2121,6 +2121,23 @@
|
|||
}
|
||||
],
|
||||
"resourceClaimName": "resourceClaimNameValue"
|
||||
},
|
||||
"allocatedResources": {
|
||||
"allocatedResourcesKey": "0"
|
||||
},
|
||||
"resources": {
|
||||
"limits": {
|
||||
"limitsKey": "0"
|
||||
},
|
||||
"requests": {
|
||||
"requestsKey": "0"
|
||||
},
|
||||
"claims": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
"request": "requestValue"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
staging/src/k8s.io/api/testdata/HEAD/core.v1.Pod.pb
vendored
BIN
staging/src/k8s.io/api/testdata/HEAD/core.v1.Pod.pb
vendored
Binary file not shown.
|
|
@ -1230,6 +1230,8 @@ spec:
|
|||
podGroup: podGroupValue
|
||||
podGroupReplicaKey: podGroupReplicaKeyValue
|
||||
status:
|
||||
allocatedResources:
|
||||
allocatedResourcesKey: "0"
|
||||
conditions:
|
||||
- lastProbeTime: "2003-01-01T01:01:01Z"
|
||||
lastTransitionTime: "2004-01-01T01:01:01Z"
|
||||
|
|
@ -1449,4 +1451,12 @@ status:
|
|||
resourceClaimStatuses:
|
||||
- name: nameValue
|
||||
resourceClaimName: resourceClaimNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
request: requestValue
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
requests:
|
||||
requestsKey: "0"
|
||||
startTime: "2007-01-01T01:01:01Z"
|
||||
|
|
|
|||
|
|
@ -369,6 +369,23 @@
|
|||
}
|
||||
],
|
||||
"resourceClaimName": "resourceClaimNameValue"
|
||||
},
|
||||
"allocatedResources": {
|
||||
"allocatedResourcesKey": "0"
|
||||
},
|
||||
"resources": {
|
||||
"limits": {
|
||||
"limitsKey": "0"
|
||||
},
|
||||
"requests": {
|
||||
"requestsKey": "0"
|
||||
},
|
||||
"claims": [
|
||||
{
|
||||
"name": "nameValue",
|
||||
"request": "requestValue"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
|
@ -33,6 +33,8 @@ metadata:
|
|||
selfLink: selfLinkValue
|
||||
uid: uidValue
|
||||
status:
|
||||
allocatedResources:
|
||||
allocatedResourcesKey: "0"
|
||||
conditions:
|
||||
- lastProbeTime: "2003-01-01T01:01:01Z"
|
||||
lastTransitionTime: "2004-01-01T01:01:01Z"
|
||||
|
|
@ -252,4 +254,12 @@ status:
|
|||
resourceClaimStatuses:
|
||||
- name: nameValue
|
||||
resourceClaimName: resourceClaimNameValue
|
||||
resources:
|
||||
claims:
|
||||
- name: nameValue
|
||||
request: requestValue
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
requests:
|
||||
requestsKey: "0"
|
||||
startTime: "2007-01-01T01:01:01Z"
|
||||
|
|
|
|||
|
|
@ -131,6 +131,14 @@ type PodStatusApplyConfiguration struct {
|
|||
ResourceClaimStatuses []PodResourceClaimStatusApplyConfiguration `json:"resourceClaimStatuses,omitempty"`
|
||||
// Status of extended resource claim backed by DRA.
|
||||
ExtendedResourceClaimStatus *PodExtendedResourceClaimStatusApplyConfiguration `json:"extendedResourceClaimStatus,omitempty"`
|
||||
// AllocatedResources is the total requests allocated for this pod by the node.
|
||||
// If pod-level requests are not set, this will be the total requests aggregated
|
||||
// across containers in the pod.
|
||||
AllocatedResources *corev1.ResourceList `json:"allocatedResources,omitempty"`
|
||||
// Resources represents the compute resource requests and limits that have been
|
||||
// applied at the pod level if pod-level requests or limits are set in
|
||||
// PodSpec.Resources
|
||||
Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
|
||||
}
|
||||
|
||||
// PodStatusApplyConfiguration constructs a declarative configuration of the PodStatus type for use with
|
||||
|
|
@ -317,3 +325,19 @@ func (b *PodStatusApplyConfiguration) WithExtendedResourceClaimStatus(value *Pod
|
|||
b.ExtendedResourceClaimStatus = value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithAllocatedResources sets the AllocatedResources field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the AllocatedResources field is set to the value of the last call.
|
||||
func (b *PodStatusApplyConfiguration) WithAllocatedResources(value corev1.ResourceList) *PodStatusApplyConfiguration {
|
||||
b.AllocatedResources = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithResources sets the Resources field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Resources field is set to the value of the last call.
|
||||
func (b *PodStatusApplyConfiguration) WithResources(value *ResourceRequirementsApplyConfiguration) *PodStatusApplyConfiguration {
|
||||
b.Resources = value
|
||||
return b
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7655,6 +7655,11 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||
- name: io.k8s.api.core.v1.PodStatus
|
||||
map:
|
||||
fields:
|
||||
- name: allocatedResources
|
||||
type:
|
||||
map:
|
||||
elementType:
|
||||
namedType: io.k8s.apimachinery.pkg.api.resource.Quantity
|
||||
- name: conditions
|
||||
type:
|
||||
list:
|
||||
|
|
@ -7733,6 +7738,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||
elementRelationship: associative
|
||||
keys:
|
||||
- name
|
||||
- name: resources
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.ResourceRequirements
|
||||
- name: startTime
|
||||
type:
|
||||
namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Time
|
||||
|
|
|
|||
Loading…
Reference in a new issue