Skip to content

core.v1.containerStatus

"ContainerStatus contains details for the current status of this container."

Index

Fields

fn withContainerID

withContainerID(containerID)

"Container's ID in the format '://'."

fn withImage

withImage(image)

"The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images."

fn withImageID

withImageID(imageID)

"ImageID of the container's image."

fn withName

withName(name)

"This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated."

fn withReady

withReady(ready)

"Specifies whether the container has passed its readiness probe."

fn withRestartCount

withRestartCount(restartCount)

"The number of times the container has been restarted."

fn withStarted

withStarted(started)

"Specifies whether the container has 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. Is always true when no startupProbe is defined."

obj lastState

"ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting."

obj lastState.running

"ContainerStateRunning is a running state of a container."

fn lastState.running.withStartedAt

withStartedAt(startedAt)

"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."

obj lastState.terminated

"ContainerStateTerminated is a terminated state of a container."

fn lastState.terminated.withContainerID

withContainerID(containerID)

"Container's ID in the format '://'"

fn lastState.terminated.withExitCode

withExitCode(exitCode)

"Exit status from the last termination of the container"

fn lastState.terminated.withFinishedAt

withFinishedAt(finishedAt)

"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."

fn lastState.terminated.withMessage

withMessage(message)

"Message regarding the last termination of the container"

fn lastState.terminated.withReason

withReason(reason)

"(brief) reason from the last termination of the container"

fn lastState.terminated.withSignal

withSignal(signal)

"Signal from the last termination of the container"

fn lastState.terminated.withStartedAt

withStartedAt(startedAt)

"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."

obj lastState.waiting

"ContainerStateWaiting is a waiting state of a container."

fn lastState.waiting.withMessage

withMessage(message)

"Message regarding why the container is not yet running."

fn lastState.waiting.withReason

withReason(reason)

"(brief) reason the container is not yet running."

obj state

"ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting."

obj state.running

"ContainerStateRunning is a running state of a container."

fn state.running.withStartedAt

withStartedAt(startedAt)

"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."

obj state.terminated

"ContainerStateTerminated is a terminated state of a container."

fn state.terminated.withContainerID

withContainerID(containerID)

"Container's ID in the format '://'"

fn state.terminated.withExitCode

withExitCode(exitCode)

"Exit status from the last termination of the container"

fn state.terminated.withFinishedAt

withFinishedAt(finishedAt)

"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."

fn state.terminated.withMessage

withMessage(message)

"Message regarding the last termination of the container"

fn state.terminated.withReason

withReason(reason)

"(brief) reason from the last termination of the container"

fn state.terminated.withSignal

withSignal(signal)

"Signal from the last termination of the container"

fn state.terminated.withStartedAt

withStartedAt(startedAt)

"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."

obj state.waiting

"ContainerStateWaiting is a waiting state of a container."

fn state.waiting.withMessage

withMessage(message)

"Message regarding why the container is not yet running."

fn state.waiting.withReason

withReason(reason)

"(brief) reason the container is not yet running."