mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-14 20:10:50 -04:00
Adding Resources and AllocatedResoures fields to the list of expected fields in PodStatus in admission test
This commit is contained in:
parent
69c1fd72aa
commit
efc3126b76
2 changed files with 4 additions and 6 deletions
|
|
@ -5409,12 +5409,8 @@ type PodStatus struct {
|
|||
AllocatedResources ResourceList `json:"allocatedResources,omitempty" protobuf:"bytes,19,rep,name=allocatedResources,casttype=ResourceList,castkey=ResourceName"`
|
||||
|
||||
// Resources represents the compute resource requests and limits that have been
|
||||
// applied at the pod level. If pod-level resources are not explicitly specified,
|
||||
// then these will be the aggregate resources computed from containers. If limits are
|
||||
// not defined for all containers (and pod-level limits are also not set), those
|
||||
// containers remain unrestricted, and no aggregate pod-level limits will be applied.
|
||||
// Pod-level limit aggregation is only performed, and is meaningful only, when all
|
||||
// containers have defined limits.
|
||||
// applied at the pod level if pod-level requests or limits are set in
|
||||
// PodSpec.Resources
|
||||
// +featureGate=InPlacePodLevelResourcesVerticalScaling
|
||||
// +optional
|
||||
Resources *ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,20,opt,name=resources"`
|
||||
|
|
|
|||
|
|
@ -117,6 +117,8 @@ var _ = SIGDescribe("PodRejectionStatus", func() {
|
|||
"Resize": gstruct.Ignore(),
|
||||
"ResourceClaimStatuses": gstruct.Ignore(),
|
||||
"ExtendedResourceClaimStatus": gstruct.Ignore(),
|
||||
"Resources": gstruct.Ignore(),
|
||||
"AllocatedResources": gstruct.Ignore(),
|
||||
}))
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue