Class V1ContainerStatus
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ContainerStatus
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1ContainerStatus
extends Object
ContainerStatus contains details for the current status of this container.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallocatedResources
(Map<String, String> allocatedResources) Set allocatedResources in a chainable fashion.containerID
(String containerID) Set containerID in a chainable fashion.boolean
AllocatedResources represents the compute resources allocated for this container by the node.ContainerID is the ID of the container in the format '<type>://<container_id>'.getImage()
Image is the name of container image that the container is running.ImageID is the image ID of the container's image.getName()
Name is a DNS_LABEL representing the unique name of the container.getReady()
Ready specifies whether the container is currently passing its readiness check.RestartCount holds the number of times the container has been restarted.Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe.getState()
int
hashCode()
Set image in a chainable fashion.Set imageID in a chainable fashion.lastState
(V1ContainerState lastState) Set lastState in a chainable fashion.Set name in a chainable fashion.putallocatedResourcesItem
(String key, String allocatedResourcesItem) Set the value for the key for the allocatedResources map property in a chainable fashion.Set ready in a chainable fashion.resources
(V1ResourceRequirements resources) Set resources in a chainable fashion.restartCount
(Integer restartCount) Set restartCount in a chainable fashion.void
setAllocatedResources
(Map<String, String> allocatedResources) Set the allocatedResources property valuevoid
setContainerID
(String containerID) Set the containerID property valuevoid
Set the image property valuevoid
setImageID
(String imageID) Set the imageID property valuevoid
setLastState
(V1ContainerState lastState) Set the lastState property valuevoid
Set the name property valuevoid
Set the ready property valuevoid
setResources
(V1ResourceRequirements resources) Set the resources property valuevoid
setRestartCount
(Integer restartCount) Set the restartCount property valuevoid
setStarted
(Boolean started) Set the started property valuevoid
setState
(V1ContainerState state) Set the state property valueSet started in a chainable fashion.state
(V1ContainerState state) Set state in a chainable fashion.toString()
-
Field Details
-
JSON_PROPERTY_ALLOCATED_RESOURCES
- See Also:
-
JSON_PROPERTY_CONTAINER_I_D
- See Also:
-
JSON_PROPERTY_IMAGE
- See Also:
-
JSON_PROPERTY_IMAGE_I_D
- See Also:
-
JSON_PROPERTY_LAST_STATE
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_READY
- See Also:
-
JSON_PROPERTY_RESOURCES
- See Also:
-
JSON_PROPERTY_RESTART_COUNT
- See Also:
-
JSON_PROPERTY_STARTED
- See Also:
-
JSON_PROPERTY_STATE
- See Also:
-
-
Constructor Details
-
V1ContainerStatus
-
-
Method Details
-
getAllocatedResources
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.- Returns:
- the allocatedResources property value
-
setAllocatedResources
Set the allocatedResources property value -
allocatedResources
Set allocatedResources in a chainable fashion.- Returns:
- The same instance of V1ContainerStatus for chaining.
-
putallocatedResourcesItem
Set the value for the key for the allocatedResources map property in a chainable fashion.- Returns:
- The same instance of V1ContainerStatus for chaining.
-
getContainerID
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\").- Returns:
- the containerID property value
-
setContainerID
Set the containerID property value -
containerID
Set containerID in a chainable fashion.- Returns:
- The same instance of V1ContainerStatus for chaining.
-
getImage
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.- Returns:
- the image property value
-
setImage
Set the image property value -
image
Set image in a chainable fashion.- Returns:
- The same instance of V1ContainerStatus for chaining.
-
getImageID
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.- Returns:
- the imageID property value
-
setImageID
Set the imageID property value -
imageID
Set imageID in a chainable fashion.- Returns:
- The same instance of V1ContainerStatus for chaining.
-
getLastState
- Returns:
- the lastState property value
-
setLastState
Set the lastState property value -
lastState
Set lastState in a chainable fashion.- Returns:
- The same instance of V1ContainerStatus for chaining.
-
getName
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.- Returns:
- the name property value
-
setName
Set the name property value -
name
Set name in a chainable fashion.- Returns:
- The same instance of V1ContainerStatus for chaining.
-
getReady
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). The value is typically used to determine whether a container is ready to accept traffic.- Returns:
- the ready property value
-
setReady
Set the ready property value -
ready
Set ready in a chainable fashion.- Returns:
- The same instance of V1ContainerStatus for chaining.
-
getResources
- Returns:
- the resources property value
-
setResources
Set the resources property value -
resources
Set resources in a chainable fashion.- Returns:
- The same instance of V1ContainerStatus for chaining.
-
getRestartCount
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.- Returns:
- the restartCount property value
-
setRestartCount
Set the restartCount property value -
restartCount
Set restartCount in a chainable fashion.- Returns:
- The same instance of V1ContainerStatus for chaining.
-
getStarted
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.- Returns:
- the started property value
-
setStarted
Set the started property value -
started
Set started in a chainable fashion.- Returns:
- The same instance of V1ContainerStatus for chaining.
-
getState
- Returns:
- the state property value
-
setState
Set the state property value -
state
Set state in a chainable fashion.- Returns:
- The same instance of V1ContainerStatus for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-