mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
Merge pull request #5809 from dchen1107/podstatus
Introduced LastTerminateState to ContainerStatus
This commit is contained in:
commit
2a88c77522
@ -463,6 +463,7 @@ type ContainerStateTerminated struct {
|
||||
Message string `json:"message,omitempty"`
|
||||
StartedAt util.Time `json:"startedAt,omitempty"`
|
||||
FinishedAt util.Time `json:"finishedAt,omitempty"`
|
||||
ContainerID string `json:"containerID,omitempty"`
|
||||
}
|
||||
|
||||
// ContainerState holds a possible state of container.
|
||||
@ -478,6 +479,7 @@ type ContainerStatus struct {
|
||||
// TODO(dchen1107): Should we rename PodStatus to a more generic name or have a separate states
|
||||
// defined for container?
|
||||
State ContainerState `json:"state,omitempty"`
|
||||
LastTerminationState ContainerState `json:"lastState,omitempty"`
|
||||
// Ready specifies whether the conatiner has passed its readiness check.
|
||||
Ready bool `json:"ready"`
|
||||
// Note that this is calculated from dead containers. But those containers are subject to
|
||||
|
@ -431,6 +431,7 @@ type ContainerStateTerminated struct {
|
||||
Message string `json:"message,omitempty" description:"message regarding the last termination of the container"`
|
||||
StartedAt util.Time `json:"startedAt,omitempty" description:"time at which previous execution of the container started"`
|
||||
FinishedAt util.Time `json:"finishedAt,omitempty" description:"time at which the container last terminated"`
|
||||
ContainerID string `json:"containerID,omitempty" description:"container's ID in the format 'docker://<container_id>'"`
|
||||
}
|
||||
|
||||
// ContainerState holds a possible state of container.
|
||||
@ -446,6 +447,7 @@ type ContainerStatus struct {
|
||||
// TODO(dchen1107): Should we rename PodStatus to a more generic name or have a separate states
|
||||
// defined for container?
|
||||
State ContainerState `json:"state,omitempty" description:"details about the container's current condition"`
|
||||
LastTerminationState ContainerState `json:"lastState,omitempty" description:"details about the container's last termination condition"`
|
||||
Ready bool `json:"ready" description:"specifies whether the container has passed its readiness probe"`
|
||||
// Note that this is calculated from dead containers. But those containers are subject to
|
||||
// garbage collection. This value will get capped at 5 by GC.
|
||||
|
@ -428,6 +428,7 @@ type ContainerStateTerminated struct {
|
||||
Message string `json:"message,omitempty" description:"message regarding the last termination of the container"`
|
||||
StartedAt util.Time `json:"startedAt,omitempty" description:"time at which previous execution of the container started"`
|
||||
FinishedAt util.Time `json:"finishedAt,omitempty" description:"time at which the container last terminated"`
|
||||
ContainerID string `json:"containerID,omitempty" description:"container's ID in the format 'docker://<container_id>'"`
|
||||
}
|
||||
|
||||
// ContainerState holds a possible state of container.
|
||||
@ -443,6 +444,7 @@ type ContainerStatus struct {
|
||||
// TODO(dchen1107): Should we rename PodStatus to a more generic name or have a separate states
|
||||
// defined for container?
|
||||
State ContainerState `json:"state,omitempty" description:"details about the container's current condition"`
|
||||
LastTerminationState ContainerState `json:"lastState,omitempty" description:"details about the container's last termination condition"`
|
||||
Ready bool `json:"ready" description:"specifies whether the container has passed its readiness probe"`
|
||||
// Note that this is calculated from dead containers. But those containers are subject to
|
||||
// garbage collection. This value will get capped at 5 by GC.
|
||||
|
@ -475,6 +475,7 @@ type ContainerStateTerminated struct {
|
||||
Message string `json:"message,omitempty" description:"message regarding the last termination of the container"`
|
||||
StartedAt util.Time `json:"startedAt,omitempty" description:"time at which previous execution of the container started"`
|
||||
FinishedAt util.Time `json:"finishedAt,omitempty" description:"time at which the container last terminated"`
|
||||
ContainerID string `json:"containerID,omitempty" description:"container's ID in the format 'docker://<container_id>'"`
|
||||
}
|
||||
|
||||
// ContainerState holds a possible state of container.
|
||||
@ -490,6 +491,7 @@ type ContainerStatus struct {
|
||||
// TODO(dchen1107): Should we rename PodStatus to a more generic name or have a separate states
|
||||
// defined for container?
|
||||
State ContainerState `json:"state,omitempty" description:"details about the container's current condition"`
|
||||
LastTerminationState ContainerState `json:"lastState,omitempty" description:"details about the container's last termination condition"`
|
||||
Ready bool `json:"ready" description:"specifies whether the container has passed its readiness probe"`
|
||||
// Note that this is calculated from dead containers. But those containers are subject to
|
||||
// garbage collection. This value will get capped at 5 by GC.
|
||||
|
Loading…
Reference in New Issue
Block a user