Rename ContainerStatus.ResourcesAllocated to ContainerStatus.AllocatedResources - generated files
This commit is contained in:
parent
01b96e7704
commit
565fd4116d
14
api/openapi-spec/swagger.json
generated
14
api/openapi-spec/swagger.json
generated
@ -5042,6 +5042,13 @@
|
|||||||
"io.k8s.api.core.v1.ContainerStatus": {
|
"io.k8s.api.core.v1.ContainerStatus": {
|
||||||
"description": "ContainerStatus contains details for the current status of this container.",
|
"description": "ContainerStatus contains details for the current status of this container.",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"allocatedResources": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity"
|
||||||
|
},
|
||||||
|
"description": "AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.",
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
"containerID": {
|
"containerID": {
|
||||||
"description": "ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").",
|
"description": "ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@ -5070,13 +5077,6 @@
|
|||||||
"$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements",
|
"$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements",
|
||||||
"description": "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized."
|
"description": "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized."
|
||||||
},
|
},
|
||||||
"resourcesAllocated": {
|
|
||||||
"additionalProperties": {
|
|
||||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity"
|
|
||||||
},
|
|
||||||
"description": "ResourcesAllocated represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.",
|
|
||||||
"type": "object"
|
|
||||||
},
|
|
||||||
"restartCount": {
|
"restartCount": {
|
||||||
"description": "RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.",
|
"description": "RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.",
|
||||||
"format": "int32",
|
"format": "int32",
|
||||||
|
@ -1437,6 +1437,18 @@
|
|||||||
"io.k8s.api.core.v1.ContainerStatus": {
|
"io.k8s.api.core.v1.ContainerStatus": {
|
||||||
"description": "ContainerStatus contains details for the current status of this container.",
|
"description": "ContainerStatus contains details for the current status of this container.",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"allocatedResources": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/io.k8s.apimachinery.pkg.api.resource.Quantity"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default": {}
|
||||||
|
},
|
||||||
|
"description": "AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.",
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
"containerID": {
|
"containerID": {
|
||||||
"description": "ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").",
|
"description": "ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@ -1478,18 +1490,6 @@
|
|||||||
],
|
],
|
||||||
"description": "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized."
|
"description": "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized."
|
||||||
},
|
},
|
||||||
"resourcesAllocated": {
|
|
||||||
"additionalProperties": {
|
|
||||||
"allOf": [
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/io.k8s.apimachinery.pkg.api.resource.Quantity"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"default": {}
|
|
||||||
},
|
|
||||||
"description": "ResourcesAllocated represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.",
|
|
||||||
"type": "object"
|
|
||||||
},
|
|
||||||
"restartCount": {
|
"restartCount": {
|
||||||
"default": 0,
|
"default": 0,
|
||||||
"description": "RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.",
|
"description": "RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.",
|
||||||
|
4
pkg/apis/core/v1/zz_generated.conversion.go
generated
4
pkg/apis/core/v1/zz_generated.conversion.go
generated
@ -3225,7 +3225,7 @@ func autoConvert_v1_ContainerStatus_To_core_ContainerStatus(in *v1.ContainerStat
|
|||||||
out.ImageID = in.ImageID
|
out.ImageID = in.ImageID
|
||||||
out.ContainerID = in.ContainerID
|
out.ContainerID = in.ContainerID
|
||||||
out.Started = (*bool)(unsafe.Pointer(in.Started))
|
out.Started = (*bool)(unsafe.Pointer(in.Started))
|
||||||
out.ResourcesAllocated = *(*core.ResourceList)(unsafe.Pointer(&in.ResourcesAllocated))
|
out.AllocatedResources = *(*core.ResourceList)(unsafe.Pointer(&in.AllocatedResources))
|
||||||
out.Resources = (*core.ResourceRequirements)(unsafe.Pointer(in.Resources))
|
out.Resources = (*core.ResourceRequirements)(unsafe.Pointer(in.Resources))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
@ -3249,7 +3249,7 @@ func autoConvert_core_ContainerStatus_To_v1_ContainerStatus(in *core.ContainerSt
|
|||||||
out.ImageID = in.ImageID
|
out.ImageID = in.ImageID
|
||||||
out.ContainerID = in.ContainerID
|
out.ContainerID = in.ContainerID
|
||||||
out.Started = (*bool)(unsafe.Pointer(in.Started))
|
out.Started = (*bool)(unsafe.Pointer(in.Started))
|
||||||
out.ResourcesAllocated = *(*v1.ResourceList)(unsafe.Pointer(&in.ResourcesAllocated))
|
out.AllocatedResources = *(*v1.ResourceList)(unsafe.Pointer(&in.AllocatedResources))
|
||||||
out.Resources = (*v1.ResourceRequirements)(unsafe.Pointer(in.Resources))
|
out.Resources = (*v1.ResourceRequirements)(unsafe.Pointer(in.Resources))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
12
pkg/apis/core/v1/zz_generated.defaults.go
generated
12
pkg/apis/core/v1/zz_generated.defaults.go
generated
@ -441,7 +441,7 @@ func SetObjectDefaults_Pod(in *v1.Pod) {
|
|||||||
SetDefaults_ResourceList(&in.Spec.Overhead)
|
SetDefaults_ResourceList(&in.Spec.Overhead)
|
||||||
for i := range in.Status.InitContainerStatuses {
|
for i := range in.Status.InitContainerStatuses {
|
||||||
a := &in.Status.InitContainerStatuses[i]
|
a := &in.Status.InitContainerStatuses[i]
|
||||||
SetDefaults_ResourceList(&a.ResourcesAllocated)
|
SetDefaults_ResourceList(&a.AllocatedResources)
|
||||||
if a.Resources != nil {
|
if a.Resources != nil {
|
||||||
SetDefaults_ResourceList(&a.Resources.Limits)
|
SetDefaults_ResourceList(&a.Resources.Limits)
|
||||||
SetDefaults_ResourceList(&a.Resources.Requests)
|
SetDefaults_ResourceList(&a.Resources.Requests)
|
||||||
@ -449,7 +449,7 @@ func SetObjectDefaults_Pod(in *v1.Pod) {
|
|||||||
}
|
}
|
||||||
for i := range in.Status.ContainerStatuses {
|
for i := range in.Status.ContainerStatuses {
|
||||||
a := &in.Status.ContainerStatuses[i]
|
a := &in.Status.ContainerStatuses[i]
|
||||||
SetDefaults_ResourceList(&a.ResourcesAllocated)
|
SetDefaults_ResourceList(&a.AllocatedResources)
|
||||||
if a.Resources != nil {
|
if a.Resources != nil {
|
||||||
SetDefaults_ResourceList(&a.Resources.Limits)
|
SetDefaults_ResourceList(&a.Resources.Limits)
|
||||||
SetDefaults_ResourceList(&a.Resources.Requests)
|
SetDefaults_ResourceList(&a.Resources.Requests)
|
||||||
@ -457,7 +457,7 @@ func SetObjectDefaults_Pod(in *v1.Pod) {
|
|||||||
}
|
}
|
||||||
for i := range in.Status.EphemeralContainerStatuses {
|
for i := range in.Status.EphemeralContainerStatuses {
|
||||||
a := &in.Status.EphemeralContainerStatuses[i]
|
a := &in.Status.EphemeralContainerStatuses[i]
|
||||||
SetDefaults_ResourceList(&a.ResourcesAllocated)
|
SetDefaults_ResourceList(&a.AllocatedResources)
|
||||||
if a.Resources != nil {
|
if a.Resources != nil {
|
||||||
SetDefaults_ResourceList(&a.Resources.Limits)
|
SetDefaults_ResourceList(&a.Resources.Limits)
|
||||||
SetDefaults_ResourceList(&a.Resources.Requests)
|
SetDefaults_ResourceList(&a.Resources.Requests)
|
||||||
@ -475,7 +475,7 @@ func SetObjectDefaults_PodList(in *v1.PodList) {
|
|||||||
func SetObjectDefaults_PodStatusResult(in *v1.PodStatusResult) {
|
func SetObjectDefaults_PodStatusResult(in *v1.PodStatusResult) {
|
||||||
for i := range in.Status.InitContainerStatuses {
|
for i := range in.Status.InitContainerStatuses {
|
||||||
a := &in.Status.InitContainerStatuses[i]
|
a := &in.Status.InitContainerStatuses[i]
|
||||||
SetDefaults_ResourceList(&a.ResourcesAllocated)
|
SetDefaults_ResourceList(&a.AllocatedResources)
|
||||||
if a.Resources != nil {
|
if a.Resources != nil {
|
||||||
SetDefaults_ResourceList(&a.Resources.Limits)
|
SetDefaults_ResourceList(&a.Resources.Limits)
|
||||||
SetDefaults_ResourceList(&a.Resources.Requests)
|
SetDefaults_ResourceList(&a.Resources.Requests)
|
||||||
@ -483,7 +483,7 @@ func SetObjectDefaults_PodStatusResult(in *v1.PodStatusResult) {
|
|||||||
}
|
}
|
||||||
for i := range in.Status.ContainerStatuses {
|
for i := range in.Status.ContainerStatuses {
|
||||||
a := &in.Status.ContainerStatuses[i]
|
a := &in.Status.ContainerStatuses[i]
|
||||||
SetDefaults_ResourceList(&a.ResourcesAllocated)
|
SetDefaults_ResourceList(&a.AllocatedResources)
|
||||||
if a.Resources != nil {
|
if a.Resources != nil {
|
||||||
SetDefaults_ResourceList(&a.Resources.Limits)
|
SetDefaults_ResourceList(&a.Resources.Limits)
|
||||||
SetDefaults_ResourceList(&a.Resources.Requests)
|
SetDefaults_ResourceList(&a.Resources.Requests)
|
||||||
@ -491,7 +491,7 @@ func SetObjectDefaults_PodStatusResult(in *v1.PodStatusResult) {
|
|||||||
}
|
}
|
||||||
for i := range in.Status.EphemeralContainerStatuses {
|
for i := range in.Status.EphemeralContainerStatuses {
|
||||||
a := &in.Status.EphemeralContainerStatuses[i]
|
a := &in.Status.EphemeralContainerStatuses[i]
|
||||||
SetDefaults_ResourceList(&a.ResourcesAllocated)
|
SetDefaults_ResourceList(&a.AllocatedResources)
|
||||||
if a.Resources != nil {
|
if a.Resources != nil {
|
||||||
SetDefaults_ResourceList(&a.Resources.Limits)
|
SetDefaults_ResourceList(&a.Resources.Limits)
|
||||||
SetDefaults_ResourceList(&a.Resources.Requests)
|
SetDefaults_ResourceList(&a.Resources.Requests)
|
||||||
|
4
pkg/apis/core/zz_generated.deepcopy.go
generated
4
pkg/apis/core/zz_generated.deepcopy.go
generated
@ -988,8 +988,8 @@ func (in *ContainerStatus) DeepCopyInto(out *ContainerStatus) {
|
|||||||
*out = new(bool)
|
*out = new(bool)
|
||||||
**out = **in
|
**out = **in
|
||||||
}
|
}
|
||||||
if in.ResourcesAllocated != nil {
|
if in.AllocatedResources != nil {
|
||||||
in, out := &in.ResourcesAllocated, &out.ResourcesAllocated
|
in, out := &in.AllocatedResources, &out.AllocatedResources
|
||||||
*out = make(ResourceList, len(*in))
|
*out = make(ResourceList, len(*in))
|
||||||
for key, val := range *in {
|
for key, val := range *in {
|
||||||
(*out)[key] = val.DeepCopy()
|
(*out)[key] = val.DeepCopy()
|
||||||
|
4
pkg/generated/openapi/zz_generated.openapi.go
generated
4
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -17649,9 +17649,9 @@ func schema_k8sio_api_core_v1_ContainerStatus(ref common.ReferenceCallback) comm
|
|||||||
Format: "",
|
Format: "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"resourcesAllocated": {
|
"allocatedResources": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "ResourcesAllocated represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.",
|
Description: "AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.",
|
||||||
Type: []string{"object"},
|
Type: []string{"object"},
|
||||||
AdditionalProperties: &spec.SchemaOrBool{
|
AdditionalProperties: &spec.SchemaOrBool{
|
||||||
Allows: true,
|
Allows: true,
|
||||||
|
1491
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
1491
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
File diff suppressed because it is too large
Load Diff
@ -1004,12 +1004,12 @@ message ContainerStatus {
|
|||||||
// +optional
|
// +optional
|
||||||
optional bool started = 9;
|
optional bool started = 9;
|
||||||
|
|
||||||
// ResourcesAllocated represents the compute resources allocated for this container by the
|
// AllocatedResources represents the compute resources allocated for this container by the
|
||||||
// node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission
|
// node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission
|
||||||
// and after successfully admitting desired pod resize.
|
// and after successfully admitting desired pod resize.
|
||||||
// +featureGate=InPlacePodVerticalScaling
|
// +featureGate=InPlacePodVerticalScaling
|
||||||
// +optional
|
// +optional
|
||||||
map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> resourcesAllocated = 10;
|
map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 10;
|
||||||
|
|
||||||
// Resources represents the compute resource requests and limits that have been successfully
|
// Resources represents the compute resource requests and limits that have been successfully
|
||||||
// enacted on the running container after it has been started or has been successfully resized.
|
// enacted on the running container after it has been started or has been successfully resized.
|
||||||
|
@ -455,7 +455,7 @@ var map_ContainerStatus = map[string]string{
|
|||||||
"imageID": "ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.",
|
"imageID": "ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.",
|
||||||
"containerID": "ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").",
|
"containerID": "ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").",
|
||||||
"started": "Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false.",
|
"started": "Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false.",
|
||||||
"resourcesAllocated": "ResourcesAllocated represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.",
|
"allocatedResources": "AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.",
|
||||||
"resources": "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized.",
|
"resources": "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized.",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -988,8 +988,8 @@ func (in *ContainerStatus) DeepCopyInto(out *ContainerStatus) {
|
|||||||
*out = new(bool)
|
*out = new(bool)
|
||||||
**out = **in
|
**out = **in
|
||||||
}
|
}
|
||||||
if in.ResourcesAllocated != nil {
|
if in.AllocatedResources != nil {
|
||||||
in, out := &in.ResourcesAllocated, &out.ResourcesAllocated
|
in, out := &in.AllocatedResources, &out.AllocatedResources
|
||||||
*out = make(ResourceList, len(*in))
|
*out = make(ResourceList, len(*in))
|
||||||
for key, val := range *in {
|
for key, val := range *in {
|
||||||
(*out)[key] = val.DeepCopy()
|
(*out)[key] = val.DeepCopy()
|
||||||
|
@ -1691,8 +1691,8 @@
|
|||||||
"imageID": "imageIDValue",
|
"imageID": "imageIDValue",
|
||||||
"containerID": "containerIDValue",
|
"containerID": "containerIDValue",
|
||||||
"started": true,
|
"started": true,
|
||||||
"resourcesAllocated": {
|
"allocatedResources": {
|
||||||
"resourcesAllocatedKey": "0"
|
"allocatedResourcesKey": "0"
|
||||||
},
|
},
|
||||||
"resources": {
|
"resources": {
|
||||||
"limits": {
|
"limits": {
|
||||||
@ -1754,8 +1754,8 @@
|
|||||||
"imageID": "imageIDValue",
|
"imageID": "imageIDValue",
|
||||||
"containerID": "containerIDValue",
|
"containerID": "containerIDValue",
|
||||||
"started": true,
|
"started": true,
|
||||||
"resourcesAllocated": {
|
"allocatedResources": {
|
||||||
"resourcesAllocatedKey": "0"
|
"allocatedResourcesKey": "0"
|
||||||
},
|
},
|
||||||
"resources": {
|
"resources": {
|
||||||
"limits": {
|
"limits": {
|
||||||
@ -1818,8 +1818,8 @@
|
|||||||
"imageID": "imageIDValue",
|
"imageID": "imageIDValue",
|
||||||
"containerID": "containerIDValue",
|
"containerID": "containerIDValue",
|
||||||
"started": true,
|
"started": true,
|
||||||
"resourcesAllocated": {
|
"allocatedResources": {
|
||||||
"resourcesAllocatedKey": "0"
|
"allocatedResourcesKey": "0"
|
||||||
},
|
},
|
||||||
"resources": {
|
"resources": {
|
||||||
"limits": {
|
"limits": {
|
||||||
|
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.
@ -1115,7 +1115,9 @@ status:
|
|||||||
status: statusValue
|
status: statusValue
|
||||||
type: typeValue
|
type: typeValue
|
||||||
containerStatuses:
|
containerStatuses:
|
||||||
- containerID: containerIDValue
|
- allocatedResources:
|
||||||
|
allocatedResourcesKey: "0"
|
||||||
|
containerID: containerIDValue
|
||||||
image: imageValue
|
image: imageValue
|
||||||
imageID: imageIDValue
|
imageID: imageIDValue
|
||||||
lastState:
|
lastState:
|
||||||
@ -1141,8 +1143,6 @@ status:
|
|||||||
limitsKey: "0"
|
limitsKey: "0"
|
||||||
requests:
|
requests:
|
||||||
requestsKey: "0"
|
requestsKey: "0"
|
||||||
resourcesAllocated:
|
|
||||||
resourcesAllocatedKey: "0"
|
|
||||||
restartCount: 5
|
restartCount: 5
|
||||||
started: true
|
started: true
|
||||||
state:
|
state:
|
||||||
@ -1160,7 +1160,9 @@ status:
|
|||||||
message: messageValue
|
message: messageValue
|
||||||
reason: reasonValue
|
reason: reasonValue
|
||||||
ephemeralContainerStatuses:
|
ephemeralContainerStatuses:
|
||||||
- containerID: containerIDValue
|
- allocatedResources:
|
||||||
|
allocatedResourcesKey: "0"
|
||||||
|
containerID: containerIDValue
|
||||||
image: imageValue
|
image: imageValue
|
||||||
imageID: imageIDValue
|
imageID: imageIDValue
|
||||||
lastState:
|
lastState:
|
||||||
@ -1186,8 +1188,6 @@ status:
|
|||||||
limitsKey: "0"
|
limitsKey: "0"
|
||||||
requests:
|
requests:
|
||||||
requestsKey: "0"
|
requestsKey: "0"
|
||||||
resourcesAllocated:
|
|
||||||
resourcesAllocatedKey: "0"
|
|
||||||
restartCount: 5
|
restartCount: 5
|
||||||
started: true
|
started: true
|
||||||
state:
|
state:
|
||||||
@ -1206,7 +1206,9 @@ status:
|
|||||||
reason: reasonValue
|
reason: reasonValue
|
||||||
hostIP: hostIPValue
|
hostIP: hostIPValue
|
||||||
initContainerStatuses:
|
initContainerStatuses:
|
||||||
- containerID: containerIDValue
|
- allocatedResources:
|
||||||
|
allocatedResourcesKey: "0"
|
||||||
|
containerID: containerIDValue
|
||||||
image: imageValue
|
image: imageValue
|
||||||
imageID: imageIDValue
|
imageID: imageIDValue
|
||||||
lastState:
|
lastState:
|
||||||
@ -1232,8 +1234,6 @@ status:
|
|||||||
limitsKey: "0"
|
limitsKey: "0"
|
||||||
requests:
|
requests:
|
||||||
requestsKey: "0"
|
requestsKey: "0"
|
||||||
resourcesAllocated:
|
|
||||||
resourcesAllocatedKey: "0"
|
|
||||||
restartCount: 5
|
restartCount: 5
|
||||||
started: true
|
started: true
|
||||||
state:
|
state:
|
||||||
|
@ -111,8 +111,8 @@
|
|||||||
"imageID": "imageIDValue",
|
"imageID": "imageIDValue",
|
||||||
"containerID": "containerIDValue",
|
"containerID": "containerIDValue",
|
||||||
"started": true,
|
"started": true,
|
||||||
"resourcesAllocated": {
|
"allocatedResources": {
|
||||||
"resourcesAllocatedKey": "0"
|
"allocatedResourcesKey": "0"
|
||||||
},
|
},
|
||||||
"resources": {
|
"resources": {
|
||||||
"limits": {
|
"limits": {
|
||||||
@ -174,8 +174,8 @@
|
|||||||
"imageID": "imageIDValue",
|
"imageID": "imageIDValue",
|
||||||
"containerID": "containerIDValue",
|
"containerID": "containerIDValue",
|
||||||
"started": true,
|
"started": true,
|
||||||
"resourcesAllocated": {
|
"allocatedResources": {
|
||||||
"resourcesAllocatedKey": "0"
|
"allocatedResourcesKey": "0"
|
||||||
},
|
},
|
||||||
"resources": {
|
"resources": {
|
||||||
"limits": {
|
"limits": {
|
||||||
@ -238,8 +238,8 @@
|
|||||||
"imageID": "imageIDValue",
|
"imageID": "imageIDValue",
|
||||||
"containerID": "containerIDValue",
|
"containerID": "containerIDValue",
|
||||||
"started": true,
|
"started": true,
|
||||||
"resourcesAllocated": {
|
"allocatedResources": {
|
||||||
"resourcesAllocatedKey": "0"
|
"allocatedResourcesKey": "0"
|
||||||
},
|
},
|
||||||
"resources": {
|
"resources": {
|
||||||
"limits": {
|
"limits": {
|
||||||
|
Binary file not shown.
@ -41,7 +41,9 @@ status:
|
|||||||
status: statusValue
|
status: statusValue
|
||||||
type: typeValue
|
type: typeValue
|
||||||
containerStatuses:
|
containerStatuses:
|
||||||
- containerID: containerIDValue
|
- allocatedResources:
|
||||||
|
allocatedResourcesKey: "0"
|
||||||
|
containerID: containerIDValue
|
||||||
image: imageValue
|
image: imageValue
|
||||||
imageID: imageIDValue
|
imageID: imageIDValue
|
||||||
lastState:
|
lastState:
|
||||||
@ -67,8 +69,6 @@ status:
|
|||||||
limitsKey: "0"
|
limitsKey: "0"
|
||||||
requests:
|
requests:
|
||||||
requestsKey: "0"
|
requestsKey: "0"
|
||||||
resourcesAllocated:
|
|
||||||
resourcesAllocatedKey: "0"
|
|
||||||
restartCount: 5
|
restartCount: 5
|
||||||
started: true
|
started: true
|
||||||
state:
|
state:
|
||||||
@ -86,7 +86,9 @@ status:
|
|||||||
message: messageValue
|
message: messageValue
|
||||||
reason: reasonValue
|
reason: reasonValue
|
||||||
ephemeralContainerStatuses:
|
ephemeralContainerStatuses:
|
||||||
- containerID: containerIDValue
|
- allocatedResources:
|
||||||
|
allocatedResourcesKey: "0"
|
||||||
|
containerID: containerIDValue
|
||||||
image: imageValue
|
image: imageValue
|
||||||
imageID: imageIDValue
|
imageID: imageIDValue
|
||||||
lastState:
|
lastState:
|
||||||
@ -112,8 +114,6 @@ status:
|
|||||||
limitsKey: "0"
|
limitsKey: "0"
|
||||||
requests:
|
requests:
|
||||||
requestsKey: "0"
|
requestsKey: "0"
|
||||||
resourcesAllocated:
|
|
||||||
resourcesAllocatedKey: "0"
|
|
||||||
restartCount: 5
|
restartCount: 5
|
||||||
started: true
|
started: true
|
||||||
state:
|
state:
|
||||||
@ -132,7 +132,9 @@ status:
|
|||||||
reason: reasonValue
|
reason: reasonValue
|
||||||
hostIP: hostIPValue
|
hostIP: hostIPValue
|
||||||
initContainerStatuses:
|
initContainerStatuses:
|
||||||
- containerID: containerIDValue
|
- allocatedResources:
|
||||||
|
allocatedResourcesKey: "0"
|
||||||
|
containerID: containerIDValue
|
||||||
image: imageValue
|
image: imageValue
|
||||||
imageID: imageIDValue
|
imageID: imageIDValue
|
||||||
lastState:
|
lastState:
|
||||||
@ -158,8 +160,6 @@ status:
|
|||||||
limitsKey: "0"
|
limitsKey: "0"
|
||||||
requests:
|
requests:
|
||||||
requestsKey: "0"
|
requestsKey: "0"
|
||||||
resourcesAllocated:
|
|
||||||
resourcesAllocatedKey: "0"
|
|
||||||
restartCount: 5
|
restartCount: 5
|
||||||
started: true
|
started: true
|
||||||
state:
|
state:
|
||||||
|
@ -34,7 +34,7 @@ type ContainerStatusApplyConfiguration struct {
|
|||||||
ImageID *string `json:"imageID,omitempty"`
|
ImageID *string `json:"imageID,omitempty"`
|
||||||
ContainerID *string `json:"containerID,omitempty"`
|
ContainerID *string `json:"containerID,omitempty"`
|
||||||
Started *bool `json:"started,omitempty"`
|
Started *bool `json:"started,omitempty"`
|
||||||
ResourcesAllocated *corev1.ResourceList `json:"resourcesAllocated,omitempty"`
|
AllocatedResources *corev1.ResourceList `json:"allocatedResources,omitempty"`
|
||||||
Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
|
Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -116,11 +116,11 @@ func (b *ContainerStatusApplyConfiguration) WithStarted(value bool) *ContainerSt
|
|||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithResourcesAllocated sets the ResourcesAllocated field in the declarative configuration to the given value
|
// 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.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the ResourcesAllocated field is set to the value of the last call.
|
// If called multiple times, the AllocatedResources field is set to the value of the last call.
|
||||||
func (b *ContainerStatusApplyConfiguration) WithResourcesAllocated(value corev1.ResourceList) *ContainerStatusApplyConfiguration {
|
func (b *ContainerStatusApplyConfiguration) WithAllocatedResources(value corev1.ResourceList) *ContainerStatusApplyConfiguration {
|
||||||
b.ResourcesAllocated = &value
|
b.AllocatedResources = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4303,6 +4303,11 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: io.k8s.api.core.v1.ContainerStatus
|
- name: io.k8s.api.core.v1.ContainerStatus
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
|
- name: allocatedResources
|
||||||
|
type:
|
||||||
|
map:
|
||||||
|
elementType:
|
||||||
|
namedType: io.k8s.apimachinery.pkg.api.resource.Quantity
|
||||||
- name: containerID
|
- name: containerID
|
||||||
type:
|
type:
|
||||||
scalar: string
|
scalar: string
|
||||||
@ -4329,11 +4334,6 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: resources
|
- name: resources
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.api.core.v1.ResourceRequirements
|
namedType: io.k8s.api.core.v1.ResourceRequirements
|
||||||
- name: resourcesAllocated
|
|
||||||
type:
|
|
||||||
map:
|
|
||||||
elementType:
|
|
||||||
namedType: io.k8s.apimachinery.pkg.api.resource.Quantity
|
|
||||||
- name: restartCount
|
- name: restartCount
|
||||||
type:
|
type:
|
||||||
scalar: numeric
|
scalar: numeric
|
||||||
|
Loading…
Reference in New Issue
Block a user