Package k8s.io.api.core.v1
Interface Generated.ContainerStatusOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Generated.ContainerStatus,Generated.ContainerStatus.Builder
- Enclosing class:
- Generated
public static interface Generated.ContainerStatusOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsAllocatedResources(String key)AllocatedResources represents the compute resources allocated for this container by the node.Map<String,Generated.Quantity>getAllocatedResources()Deprecated.intgetAllocatedResourcesCount()AllocatedResources represents the compute resources allocated for this container by the node.Map<String,Generated.Quantity>getAllocatedResourcesMap()AllocatedResources represents the compute resources allocated for this container by the node.Generated.QuantitygetAllocatedResourcesOrDefault(String key, Generated.Quantity defaultValue)AllocatedResources represents the compute resources allocated for this container by the node.Generated.QuantitygetAllocatedResourcesOrThrow(String key)AllocatedResources represents the compute resources allocated for this container by the node.Generated.ResourceStatusgetAllocatedResourcesStatus(int index)AllocatedResourcesStatus represents the status of various resources allocated for this Pod.intgetAllocatedResourcesStatusCount()AllocatedResourcesStatus represents the status of various resources allocated for this Pod.List<Generated.ResourceStatus>getAllocatedResourcesStatusList()AllocatedResourcesStatus represents the status of various resources allocated for this Pod.Generated.ResourceStatusOrBuildergetAllocatedResourcesStatusOrBuilder(int index)AllocatedResourcesStatus represents the status of various resources allocated for this Pod.List<? extends Generated.ResourceStatusOrBuilder>getAllocatedResourcesStatusOrBuilderList()AllocatedResourcesStatus represents the status of various resources allocated for this Pod.StringgetContainerID()ContainerID is the ID of the container in the format '<type>://<container_id>'.com.google.protobuf.ByteStringgetContainerIDBytes()ContainerID is the ID of the container in the format '<type>://<container_id>'.StringgetImage()Image is the name of container image that the container is running.com.google.protobuf.ByteStringgetImageBytes()Image is the name of container image that the container is running.StringgetImageID()ImageID is the image ID of the container's image.com.google.protobuf.ByteStringgetImageIDBytes()ImageID is the image ID of the container's image.Generated.ContainerStategetLastState()LastTerminationState holds the last termination state of the container to help debug container crashes and restarts.Generated.ContainerStateOrBuildergetLastStateOrBuilder()LastTerminationState holds the last termination state of the container to help debug container crashes and restarts.StringgetName()Name is a DNS_LABEL representing the unique name of the container.com.google.protobuf.ByteStringgetNameBytes()Name is a DNS_LABEL representing the unique name of the container.booleangetReady()Ready specifies whether the container is currently passing its readiness check.Generated.ResourceRequirementsgetResources()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.Generated.ResourceRequirementsOrBuildergetResourcesOrBuilder()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.intgetRestartCount()RestartCount holds the number of times the container has been restarted.booleangetStarted()Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe.Generated.ContainerStategetState()State holds details about the container's current condition.Generated.ContainerStateOrBuildergetStateOrBuilder()State holds details about the container's current condition.Generated.ContainerUsergetUser()User represents user identity information initially attached to the first process of the container +featureGate=SupplementalGroupsPolicy +optionalGenerated.ContainerUserOrBuildergetUserOrBuilder()User represents user identity information initially attached to the first process of the container +featureGate=SupplementalGroupsPolicy +optionalGenerated.VolumeMountStatusgetVolumeMounts(int index)Status of volume mounts.intgetVolumeMountsCount()Status of volume mounts.List<Generated.VolumeMountStatus>getVolumeMountsList()Status of volume mounts.Generated.VolumeMountStatusOrBuildergetVolumeMountsOrBuilder(int index)Status of volume mounts.List<? extends Generated.VolumeMountStatusOrBuilder>getVolumeMountsOrBuilderList()Status of volume mounts.booleanhasContainerID()ContainerID is the ID of the container in the format '<type>://<container_id>'.booleanhasImage()Image is the name of container image that the container is running.booleanhasImageID()ImageID is the image ID of the container's image.booleanhasLastState()LastTerminationState holds the last termination state of the container to help debug container crashes and restarts.booleanhasName()Name is a DNS_LABEL representing the unique name of the container.booleanhasReady()Ready specifies whether the container is currently passing its readiness check.booleanhasResources()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.booleanhasRestartCount()RestartCount holds the number of times the container has been restarted.booleanhasStarted()Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe.booleanhasState()State holds details about the container's current condition.booleanhasUser()User represents user identity information initially attached to the first process of the container +featureGate=SupplementalGroupsPolicy +optional-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasName
boolean hasName()
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.
optional string name = 1;- Returns:
- Whether the name field is set.
-
getName
String 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.
optional string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
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.
optional string name = 1;- Returns:
- The bytes for name.
-
hasState
boolean hasState()
State holds details about the container's current condition. +optional
optional .k8s.io.api.core.v1.ContainerState state = 2;- Returns:
- Whether the state field is set.
-
getState
Generated.ContainerState getState()
State holds details about the container's current condition. +optional
optional .k8s.io.api.core.v1.ContainerState state = 2;- Returns:
- The state.
-
getStateOrBuilder
Generated.ContainerStateOrBuilder getStateOrBuilder()
State holds details about the container's current condition. +optional
optional .k8s.io.api.core.v1.ContainerState state = 2;
-
hasLastState
boolean hasLastState()
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. +optional
optional .k8s.io.api.core.v1.ContainerState lastState = 3;- Returns:
- Whether the lastState field is set.
-
getLastState
Generated.ContainerState getLastState()
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. +optional
optional .k8s.io.api.core.v1.ContainerState lastState = 3;- Returns:
- The lastState.
-
getLastStateOrBuilder
Generated.ContainerStateOrBuilder getLastStateOrBuilder()
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. +optional
optional .k8s.io.api.core.v1.ContainerState lastState = 3;
-
hasReady
boolean hasReady()
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.
optional bool ready = 4;- Returns:
- Whether the ready field is set.
-
getReady
boolean 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.
optional bool ready = 4;- Returns:
- The ready.
-
hasRestartCount
boolean hasRestartCount()
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.
optional int32 restartCount = 5;- Returns:
- Whether the restartCount field is set.
-
getRestartCount
int 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.
optional int32 restartCount = 5;- Returns:
- The restartCount.
-
hasImage
boolean hasImage()
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.
optional string image = 6;- Returns:
- Whether the image field is set.
-
getImage
String 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.
optional string image = 6;- Returns:
- The image.
-
getImageBytes
com.google.protobuf.ByteString getImageBytes()
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.
optional string image = 6;- Returns:
- The bytes for image.
-
hasImageID
boolean hasImageID()
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.
optional string imageID = 7;- Returns:
- Whether the imageID field is set.
-
getImageID
String 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.
optional string imageID = 7;- Returns:
- The imageID.
-
getImageIDBytes
com.google.protobuf.ByteString getImageIDBytes()
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.
optional string imageID = 7;- Returns:
- The bytes for imageID.
-
hasContainerID
boolean hasContainerID()
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"). +optional
optional string containerID = 8;- Returns:
- Whether the containerID field is set.
-
getContainerID
String 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"). +optional
optional string containerID = 8;- Returns:
- The containerID.
-
getContainerIDBytes
com.google.protobuf.ByteString getContainerIDBytes()
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"). +optional
optional string containerID = 8;- Returns:
- The bytes for containerID.
-
hasStarted
boolean hasStarted()
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. +optional
optional bool started = 9;- Returns:
- Whether the started field is set.
-
getStarted
boolean 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. +optional
optional bool started = 9;- Returns:
- The started.
-
getAllocatedResourcesCount
int getAllocatedResourcesCount()
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. +featureGate=InPlacePodVerticalScalingAllocatedStatus +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 10;
-
containsAllocatedResources
boolean containsAllocatedResources(String key)
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. +featureGate=InPlacePodVerticalScalingAllocatedStatus +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 10;
-
getAllocatedResources
@Deprecated Map<String,Generated.Quantity> getAllocatedResources()
Deprecated.UsegetAllocatedResourcesMap()instead.
-
getAllocatedResourcesMap
Map<String,Generated.Quantity> getAllocatedResourcesMap()
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. +featureGate=InPlacePodVerticalScalingAllocatedStatus +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 10;
-
getAllocatedResourcesOrDefault
Generated.Quantity getAllocatedResourcesOrDefault(String key, Generated.Quantity defaultValue)
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. +featureGate=InPlacePodVerticalScalingAllocatedStatus +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 10;
-
getAllocatedResourcesOrThrow
Generated.Quantity getAllocatedResourcesOrThrow(String key)
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. +featureGate=InPlacePodVerticalScalingAllocatedStatus +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 10;
-
hasResources
boolean hasResources()
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. +featureGate=InPlacePodVerticalScaling +optional
optional .k8s.io.api.core.v1.ResourceRequirements resources = 11;- Returns:
- Whether the resources field is set.
-
getResources
Generated.ResourceRequirements getResources()
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. +featureGate=InPlacePodVerticalScaling +optional
optional .k8s.io.api.core.v1.ResourceRequirements resources = 11;- Returns:
- The resources.
-
getResourcesOrBuilder
Generated.ResourceRequirementsOrBuilder getResourcesOrBuilder()
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. +featureGate=InPlacePodVerticalScaling +optional
optional .k8s.io.api.core.v1.ResourceRequirements resources = 11;
-
getVolumeMountsList
List<Generated.VolumeMountStatus> getVolumeMountsList()
Status of volume mounts. +optional +patchMergeKey=mountPath +patchStrategy=merge +listType=map +listMapKey=mountPath +featureGate=RecursiveReadOnlyMounts
repeated .k8s.io.api.core.v1.VolumeMountStatus volumeMounts = 12;
-
getVolumeMounts
Generated.VolumeMountStatus getVolumeMounts(int index)
Status of volume mounts. +optional +patchMergeKey=mountPath +patchStrategy=merge +listType=map +listMapKey=mountPath +featureGate=RecursiveReadOnlyMounts
repeated .k8s.io.api.core.v1.VolumeMountStatus volumeMounts = 12;
-
getVolumeMountsCount
int getVolumeMountsCount()
Status of volume mounts. +optional +patchMergeKey=mountPath +patchStrategy=merge +listType=map +listMapKey=mountPath +featureGate=RecursiveReadOnlyMounts
repeated .k8s.io.api.core.v1.VolumeMountStatus volumeMounts = 12;
-
getVolumeMountsOrBuilderList
List<? extends Generated.VolumeMountStatusOrBuilder> getVolumeMountsOrBuilderList()
Status of volume mounts. +optional +patchMergeKey=mountPath +patchStrategy=merge +listType=map +listMapKey=mountPath +featureGate=RecursiveReadOnlyMounts
repeated .k8s.io.api.core.v1.VolumeMountStatus volumeMounts = 12;
-
getVolumeMountsOrBuilder
Generated.VolumeMountStatusOrBuilder getVolumeMountsOrBuilder(int index)
Status of volume mounts. +optional +patchMergeKey=mountPath +patchStrategy=merge +listType=map +listMapKey=mountPath +featureGate=RecursiveReadOnlyMounts
repeated .k8s.io.api.core.v1.VolumeMountStatus volumeMounts = 12;
-
hasUser
boolean hasUser()
User represents user identity information initially attached to the first process of the container +featureGate=SupplementalGroupsPolicy +optional
optional .k8s.io.api.core.v1.ContainerUser user = 13;- Returns:
- Whether the user field is set.
-
getUser
Generated.ContainerUser getUser()
User represents user identity information initially attached to the first process of the container +featureGate=SupplementalGroupsPolicy +optional
optional .k8s.io.api.core.v1.ContainerUser user = 13;- Returns:
- The user.
-
getUserOrBuilder
Generated.ContainerUserOrBuilder getUserOrBuilder()
User represents user identity information initially attached to the first process of the container +featureGate=SupplementalGroupsPolicy +optional
optional .k8s.io.api.core.v1.ContainerUser user = 13;
-
getAllocatedResourcesStatusList
List<Generated.ResourceStatus> getAllocatedResourcesStatusList()
AllocatedResourcesStatus represents the status of various resources allocated for this Pod. +featureGate=ResourceHealthStatus +optional +patchMergeKey=name +patchStrategy=merge +listType=map +listMapKey=name
repeated .k8s.io.api.core.v1.ResourceStatus allocatedResourcesStatus = 14;
-
getAllocatedResourcesStatus
Generated.ResourceStatus getAllocatedResourcesStatus(int index)
AllocatedResourcesStatus represents the status of various resources allocated for this Pod. +featureGate=ResourceHealthStatus +optional +patchMergeKey=name +patchStrategy=merge +listType=map +listMapKey=name
repeated .k8s.io.api.core.v1.ResourceStatus allocatedResourcesStatus = 14;
-
getAllocatedResourcesStatusCount
int getAllocatedResourcesStatusCount()
AllocatedResourcesStatus represents the status of various resources allocated for this Pod. +featureGate=ResourceHealthStatus +optional +patchMergeKey=name +patchStrategy=merge +listType=map +listMapKey=name
repeated .k8s.io.api.core.v1.ResourceStatus allocatedResourcesStatus = 14;
-
getAllocatedResourcesStatusOrBuilderList
List<? extends Generated.ResourceStatusOrBuilder> getAllocatedResourcesStatusOrBuilderList()
AllocatedResourcesStatus represents the status of various resources allocated for this Pod. +featureGate=ResourceHealthStatus +optional +patchMergeKey=name +patchStrategy=merge +listType=map +listMapKey=name
repeated .k8s.io.api.core.v1.ResourceStatus allocatedResourcesStatus = 14;
-
getAllocatedResourcesStatusOrBuilder
Generated.ResourceStatusOrBuilder getAllocatedResourcesStatusOrBuilder(int index)
AllocatedResourcesStatus represents the status of various resources allocated for this Pod. +featureGate=ResourceHealthStatus +optional +patchMergeKey=name +patchStrategy=merge +listType=map +listMapKey=name
repeated .k8s.io.api.core.v1.ResourceStatus allocatedResourcesStatus = 14;
-
-