Introduced LastTerminateState
This commit is contained in:
@@ -463,6 +463,7 @@ type ContainerStateTerminated struct {
|
|||||||
Message string `json:"message,omitempty"`
|
Message string `json:"message,omitempty"`
|
||||||
StartedAt util.Time `json:"startedAt,omitempty"`
|
StartedAt util.Time `json:"startedAt,omitempty"`
|
||||||
FinishedAt util.Time `json:"finishedAt,omitempty"`
|
FinishedAt util.Time `json:"finishedAt,omitempty"`
|
||||||
|
ContainerID string `json:"containerID,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ContainerState holds a possible state of container.
|
// 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
|
// TODO(dchen1107): Should we rename PodStatus to a more generic name or have a separate states
|
||||||
// defined for container?
|
// defined for container?
|
||||||
State ContainerState `json:"state,omitempty"`
|
State ContainerState `json:"state,omitempty"`
|
||||||
|
LastTerminationState ContainerState `json:"lastState,omitempty"`
|
||||||
// Ready specifies whether the conatiner has passed its readiness check.
|
// Ready specifies whether the conatiner has passed its readiness check.
|
||||||
Ready bool `json:"ready"`
|
Ready bool `json:"ready"`
|
||||||
// Note that this is calculated from dead containers. But those containers are subject to
|
// 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"`
|
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"`
|
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"`
|
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.
|
// 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
|
// TODO(dchen1107): Should we rename PodStatus to a more generic name or have a separate states
|
||||||
// defined for container?
|
// defined for container?
|
||||||
State ContainerState `json:"state,omitempty" description:"details about the container's current condition"`
|
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"`
|
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
|
// 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.
|
// 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"`
|
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"`
|
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"`
|
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.
|
// 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
|
// TODO(dchen1107): Should we rename PodStatus to a more generic name or have a separate states
|
||||||
// defined for container?
|
// defined for container?
|
||||||
State ContainerState `json:"state,omitempty" description:"details about the container's current condition"`
|
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"`
|
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
|
// 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.
|
// 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"`
|
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"`
|
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"`
|
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.
|
// 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
|
// TODO(dchen1107): Should we rename PodStatus to a more generic name or have a separate states
|
||||||
// defined for container?
|
// defined for container?
|
||||||
State ContainerState `json:"state,omitempty" description:"details about the container's current condition"`
|
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"`
|
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
|
// 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.
|
// garbage collection. This value will get capped at 5 by GC.
|
||||||
|
Reference in New Issue
Block a user