Skip to content

Commit

Permalink
generated files
Browse files Browse the repository at this point in the history
Kubernetes-commit: 2253b53b585e3405c5ce2dda2921db3a0afa02c9
  • Loading branch information
SergeyKanzhelev authored and k8s-publishing-bot committed Jul 22, 2024
1 parent 7192863 commit ca07d5a
Show file tree
Hide file tree
Showing 10 changed files with 1,761 additions and 1,070 deletions.
2,588 changes: 1,538 additions & 1,050 deletions core/v1/generated.pb.go

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions core/v1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 34 additions & 14 deletions core/v1/types_swagger_doc_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,20 +459,21 @@ func (ContainerStateWaiting) SwaggerDoc() map[string]string {
}

var map_ContainerStatus = map[string]string{
"": "ContainerStatus contains details for the current status of this container.",
"name": "Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated.",
"state": "State holds details about the container's current condition.",
"lastState": "LastTerminationState holds the last termination state of the container to help debug container crashes and restarts. This field is not populated if the container is still running and RestartCount is 0.",
"ready": "Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field).\n\nThe value is typically used to determine whether a container is ready to accept traffic.",
"restartCount": "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.",
"image": "Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images.",
"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\").",
"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.",
"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.",
"volumeMounts": "Status of volume mounts.",
"user": "User represents user identity information initially attached to the first process of the container",
"": "ContainerStatus contains details for the current status of this container.",
"name": "Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated.",
"state": "State holds details about the container's current condition.",
"lastState": "LastTerminationState holds the last termination state of the container to help debug container crashes and restarts. This field is not populated if the container is still running and RestartCount is 0.",
"ready": "Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field).\n\nThe value is typically used to determine whether a container is ready to accept traffic.",
"restartCount": "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.",
"image": "Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images.",
"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\").",
"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.",
"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.",
"volumeMounts": "Status of volume mounts.",
"user": "User represents user identity information initially attached to the first process of the container",
"allocatedResourcesStatus": "AllocatedResourcesStatus represents the status of various resources allocated for this Pod.",
}

func (ContainerStatus) SwaggerDoc() map[string]string {
Expand Down Expand Up @@ -2123,6 +2124,16 @@ func (ResourceFieldSelector) SwaggerDoc() map[string]string {
return map_ResourceFieldSelector
}

var map_ResourceHealth = map[string]string{
"": "ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680 and historical health changes are planned to be added in future iterations of a KEP.",
"resourceID": "ResourceID is the unique identifier of the resource. See the ResourceID type for more information.",
"health": "Health of the resource. can be one of:\n - Healthy: operates as normal\n - Unhealthy: reported unhealthy. We consider this a temporary health issue\n since we do not have a mechanism today to distinguish\n temporary and permanent issues.\n - Unknown: The status cannot be determined.\n For example, Device Plugin got unregistered and hasn't been re-registered since.\n\nIn future we may want to introduce the PermanentlyUnhealthy Status.",
}

func (ResourceHealth) SwaggerDoc() map[string]string {
return map_ResourceHealth
}

var map_ResourceQuota = map[string]string{
"": "ResourceQuota sets aggregate quota restrictions enforced per namespace",
"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
Expand Down Expand Up @@ -2176,6 +2187,15 @@ func (ResourceRequirements) SwaggerDoc() map[string]string {
return map_ResourceRequirements
}

var map_ResourceStatus = map[string]string{
"name": "Name of the resource. Must be unique within the pod and match one of the resources from the pod spec.",
"resources": "List of unique Resources health. Each element in the list contains an unique resource ID and resource health. At a minimum, ResourceID must uniquely identify the Resource allocated to the Pod on the Node for the lifetime of a Pod. See ResourceID type for it's definition.",
}

func (ResourceStatus) SwaggerDoc() map[string]string {
return map_ResourceStatus
}

var map_SELinuxOptions = map[string]string{
"": "SELinuxOptions are the labels to be applied to the container",
"user": "User is a SELinux user label that applies to the container.",
Expand Down
44 changes: 44 additions & 0 deletions core/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 36 additions & 3 deletions testdata/HEAD/core.v1.Pod.json
Original file line number Diff line number Diff line change
Expand Up @@ -1815,7 +1815,18 @@
3
]
}
}
},
"allocatedResourcesStatus": [
{
"name": "nameValue",
"resources": [
{
"resourceID": "resourceIDValue",
"health": "healthValue"
}
]
}
]
}
],
"containerStatuses": [
Expand Down Expand Up @@ -1896,7 +1907,18 @@
3
]
}
}
},
"allocatedResourcesStatus": [
{
"name": "nameValue",
"resources": [
{
"resourceID": "resourceIDValue",
"health": "healthValue"
}
]
}
]
}
],
"qosClass": "qosClassValue",
Expand Down Expand Up @@ -1978,7 +2000,18 @@
3
]
}
}
},
"allocatedResourcesStatus": [
{
"name": "nameValue",
"resources": [
{
"resourceID": "resourceIDValue",
"health": "healthValue"
}
]
}
]
}
],
"resize": "resizeValue",
Expand Down
Binary file modified testdata/HEAD/core.v1.Pod.pb
Binary file not shown.
15 changes: 15 additions & 0 deletions testdata/HEAD/core.v1.Pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,11 @@ status:
containerStatuses:
- allocatedResources:
allocatedResourcesKey: "0"
allocatedResourcesStatus:
- name: nameValue
resources:
- health: healthValue
resourceID: resourceIDValue
containerID: containerIDValue
image: imageValue
imageID: imageIDValue
Expand Down Expand Up @@ -1238,6 +1243,11 @@ status:
ephemeralContainerStatuses:
- allocatedResources:
allocatedResourcesKey: "0"
allocatedResourcesStatus:
- name: nameValue
resources:
- health: healthValue
resourceID: resourceIDValue
containerID: containerIDValue
image: imageValue
imageID: imageIDValue
Expand Down Expand Up @@ -1298,6 +1308,11 @@ status:
initContainerStatuses:
- allocatedResources:
allocatedResourcesKey: "0"
allocatedResourcesStatus:
- name: nameValue
resources:
- health: healthValue
resourceID: resourceIDValue
containerID: containerIDValue
image: imageValue
imageID: imageIDValue
Expand Down
39 changes: 36 additions & 3 deletions testdata/HEAD/core.v1.PodStatusResult.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,18 @@
3
]
}
}
},
"allocatedResourcesStatus": [
{
"name": "nameValue",
"resources": [
{
"resourceID": "resourceIDValue",
"health": "healthValue"
}
]
}
]
}
],
"containerStatuses": [
Expand Down Expand Up @@ -230,7 +241,18 @@
3
]
}
}
},
"allocatedResourcesStatus": [
{
"name": "nameValue",
"resources": [
{
"resourceID": "resourceIDValue",
"health": "healthValue"
}
]
}
]
}
],
"qosClass": "qosClassValue",
Expand Down Expand Up @@ -312,7 +334,18 @@
3
]
}
}
},
"allocatedResourcesStatus": [
{
"name": "nameValue",
"resources": [
{
"resourceID": "resourceIDValue",
"health": "healthValue"
}
]
}
]
}
],
"resize": "resizeValue",
Expand Down
Binary file modified testdata/HEAD/core.v1.PodStatusResult.pb
Binary file not shown.
15 changes: 15 additions & 0 deletions testdata/HEAD/core.v1.PodStatusResult.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ status:
containerStatuses:
- allocatedResources:
allocatedResourcesKey: "0"
allocatedResourcesStatus:
- name: nameValue
resources:
- health: healthValue
resourceID: resourceIDValue
containerID: containerIDValue
image: imageValue
imageID: imageIDValue
Expand Down Expand Up @@ -100,6 +105,11 @@ status:
ephemeralContainerStatuses:
- allocatedResources:
allocatedResourcesKey: "0"
allocatedResourcesStatus:
- name: nameValue
resources:
- health: healthValue
resourceID: resourceIDValue
containerID: containerIDValue
image: imageValue
imageID: imageIDValue
Expand Down Expand Up @@ -160,6 +170,11 @@ status:
initContainerStatuses:
- allocatedResources:
allocatedResourcesKey: "0"
allocatedResourcesStatus:
- name: nameValue
resources:
- health: healthValue
resourceID: resourceIDValue
containerID: containerIDValue
image: imageValue
imageID: imageIDValue
Expand Down

0 comments on commit ca07d5a

Please sign in to comment.