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, @NotNull 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, @NotNull 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_IMAGE
- See Also:
-
JSON_PROPERTY_IMAGE_I_D
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_READY
- See Also:
-
JSON_PROPERTY_RESTART_COUNT
- See Also:
-
JSON_PROPERTY_ALLOCATED_RESOURCES
- See Also:
-
JSON_PROPERTY_CONTAINER_I_D
- See Also:
-
JSON_PROPERTY_LAST_STATE
- See Also:
-
JSON_PROPERTY_RESOURCES
- See Also:
-
JSON_PROPERTY_STARTED
- See Also:
-
JSON_PROPERTY_STATE
- See Also:
-
-
Constructor Details
-
V1ContainerStatus
-
-
Method Details
-
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- Parameters:
image
- property value to set
-
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- Parameters:
imageID
- property value to set
-
imageID
Set imageID 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- Parameters:
name
- property value to set
-
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- Parameters:
ready
- property value to set
-
ready
Set ready 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- Parameters:
restartCount
- property value to set
-
restartCount
Set restartCount in a chainable fashion.- Returns:
- The same instance of V1ContainerStatus for chaining.
-
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- Parameters:
allocatedResources
- property value to set
-
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- Parameters:
containerID
- property value to set
-
containerID
Set containerID in a chainable fashion.- Returns:
- The same instance of V1ContainerStatus for chaining.
-
getLastState
- Returns:
- the lastState property value
-
setLastState
Set the lastState property value- Parameters:
lastState
- property value to set
-
lastState
Set lastState in a chainable fashion.- Returns:
- The same instance of V1ContainerStatus for chaining.
-
getResources
- Returns:
- the resources property value
-
setResources
Set the resources property value- Parameters:
resources
- property value to set
-
resources
Set resources 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- Parameters:
started
- property value to set
-
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- Parameters:
state
- property value to set
-
state
Set state in a chainable fashion.- Returns:
- The same instance of V1ContainerStatus for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-