diff --git a/dashboard/src/libs/application.tsx b/dashboard/src/libs/application.tsx index 7facb549..82636e6e 100644 --- a/dashboard/src/libs/application.tsx +++ b/dashboard/src/libs/application.tsx @@ -57,6 +57,7 @@ export const deploymentState = (app: Application): ApplicationState => { return ApplicationState.Running case Application_ContainerState.RESTARTING: case Application_ContainerState.EXITED: + return ApplicationState.Idle case Application_ContainerState.ERRORED: case Application_ContainerState.UNKNOWN: return ApplicationState.Error diff --git a/pkg/domain/backend.go b/pkg/domain/backend.go index be5d3802..8d4aeed1 100644 --- a/pkg/domain/backend.go +++ b/pkg/domain/backend.go @@ -31,12 +31,19 @@ type Container struct { type ContainerState int const ( + // ContainerStateMissing indicates that the container is not running. ContainerStateMissing ContainerState = iota + // ContainerStateStarting indicates that the container is starting. ContainerStateStarting + // ContainerStateRestarting indicates that the container is restarting. ContainerStateRestarting + // ContainerStateRunning indicates that the container is running. ContainerStateRunning + // ContainerStateExited indicates that the container has exited with code 0. ContainerStateExited + // ContainerStateErrored indicates that the container has exited with a non-zero code. ContainerStateErrored + // ContainerStateUnknown indicates that the container state is unknown. ContainerStateUnknown )