]> git.feebdaed.xyz Git - 0xmirror/kubernetes.git/commitdiff
Generated files from API changes
authorndixita <ndixita@google.com>
Wed, 15 Oct 2025 18:39:35 +0000 (18:39 +0000)
committerndixita <ndixita@google.com>
Tue, 11 Nov 2025 18:15:21 +0000 (18:15 +0000)
18 files changed:
api/openapi-spec/swagger.json
api/openapi-spec/v3/api__v1_openapi.json
pkg/apis/core/v1/zz_generated.conversion.go
pkg/apis/core/v1/zz_generated.defaults.go
pkg/apis/core/zz_generated.deepcopy.go
pkg/generated/openapi/zz_generated.openapi.go
staging/src/k8s.io/api/core/v1/generated.pb.go
staging/src/k8s.io/api/core/v1/generated.proto
staging/src/k8s.io/api/core/v1/types_swagger_doc_generated.go
staging/src/k8s.io/api/core/v1/zz_generated.deepcopy.go
staging/src/k8s.io/api/testdata/HEAD/core.v1.Pod.json
staging/src/k8s.io/api/testdata/HEAD/core.v1.Pod.pb
staging/src/k8s.io/api/testdata/HEAD/core.v1.Pod.yaml
staging/src/k8s.io/api/testdata/HEAD/core.v1.PodStatusResult.json
staging/src/k8s.io/api/testdata/HEAD/core.v1.PodStatusResult.pb
staging/src/k8s.io/api/testdata/HEAD/core.v1.PodStatusResult.yaml
staging/src/k8s.io/client-go/applyconfigurations/core/v1/podstatus.go
staging/src/k8s.io/client-go/applyconfigurations/internal/internal.go

index e926935fc5fb27bf8b788a1c6267065d322b0015..2e0f73febff221faf4bfc49a2a27063850d5af3e 100644 (file)
     "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": {
           "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."
index 74e24d6ed23ed03f480beaad4a8dc6cce519bc43..8125c8ce3fc0332d0d9357588d940830c37fdd57 100644 (file)
       "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": {
             "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": [
               {
index d7da8c7b132a0d0d97c4663200f39cfea1d38d35..3770ea1916b7bc0c47396bb5795e02e69484979e 100644 (file)
@@ -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
 }
 
index 0156add916394cce943a718216410f4cb157e55f..988066254a226ea2fec8fa741be93f6740f90040 100644 (file)
@@ -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) {
index 3e2d9cf4708b8407caea9ad06564c5489375705f..017ac70cd420a99b0704d75505fa5f98a6272fd9 100644 (file)
@@ -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
 }
 
index 4c2341f554a3587699374b26c140c998ac71a9a9..9b4f5c04533d9dff0335c2f5c373cbfadbc730ca 100644 (file)
@@ -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()},
        }
 }
 
index fdce057a7f8abcaf242c5040a421203e43e12cf0..b7de1bea54d373bbb05af3024336f4c0d6e000a8 100644 (file)
@@ -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:])
index cfb5789ea699ee2b7cec6a4a59b66081db4d864e..570b4d3438928371d0c212df6e9632dfc4bc6e5c 100644 (file)
@@ -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
index a5db088c32212374110e95a92c43483de5502ee2..0f5e44e917a411d6efd4e6876e6068e7769274e3 100644 (file)
@@ -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 {
index 3ca285eb72bda022cd16e5ca9bf2db844c24c069..15bc2ee0331e04ea63795032d82e5e83ef1166d7 100644 (file)
@@ -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
 }
 
index 5b3ea32bdb0fcd2b20ecba034dd0578284819ac6..8316bb1654163efa0188fd42ebb715d135361405 100644 (file)
         }
       ],
       "resourceClaimName": "resourceClaimNameValue"
+    },
+    "allocatedResources": {
+      "allocatedResourcesKey": "0"
+    },
+    "resources": {
+      "limits": {
+        "limitsKey": "0"
+      },
+      "requests": {
+        "requestsKey": "0"
+      },
+      "claims": [
+        {
+          "name": "nameValue",
+          "request": "requestValue"
+        }
+      ]
     }
   }
 }
\ No newline at end of file
index 2bda5846fa4780379a98cd79a1bd3653e9c9957b..5edf767085d42e9f5ab0cf782e269046699f5048 100644 (file)
Binary files a/staging/src/k8s.io/api/testdata/HEAD/core.v1.Pod.pb and b/staging/src/k8s.io/api/testdata/HEAD/core.v1.Pod.pb differ
index 2817dd5df225239b2e483b146bf70253285b921b..1335003613c70b36c4dbc68dd941c864d909f5d3 100644 (file)
@@ -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"
index e65f3718c292cd5254f53d16d5a700b8c40d9377..eb59a472428c5bd0fcd896743cff963c2816ea9f 100644 (file)
         }
       ],
       "resourceClaimName": "resourceClaimNameValue"
+    },
+    "allocatedResources": {
+      "allocatedResourcesKey": "0"
+    },
+    "resources": {
+      "limits": {
+        "limitsKey": "0"
+      },
+      "requests": {
+        "requestsKey": "0"
+      },
+      "claims": [
+        {
+          "name": "nameValue",
+          "request": "requestValue"
+        }
+      ]
     }
   }
 }
\ No newline at end of file
index 82f5a5c5c5c73a1b4bc51a4301e180d6b26fd30a..a06ad0fe013723049790420418a32c236a3a5aa0 100644 (file)
Binary files a/staging/src/k8s.io/api/testdata/HEAD/core.v1.PodStatusResult.pb and b/staging/src/k8s.io/api/testdata/HEAD/core.v1.PodStatusResult.pb differ
index 96fbedba0809f06ae38cf37a4f61f54891e08f42..561d88be58d3030191aed2b3cd0bfee563e61df0 100644 (file)
@@ -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"
index aec3785d460b46484c281c0af9a07fac9dae5219..e50ca9335e8804c32e9080a51808b847e6c8064e 100644 (file)
@@ -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
+}
index aa780e7b3ed1540e2bbfc5cad4ee214ac7a13c29..2d66c9ba08bf1b973c76bc7fa4ac453a41bdcba5 100644 (file)
@@ -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