summaryrefslogtreecommitdiff
path: root/libpod/define
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-28 16:10:33 -0400
committerGitHub <noreply@github.com>2020-10-28 16:10:33 -0400
commit464aa36b0cc5cf2066380184eb1bb014107a1ca9 (patch)
treef3619b3dee9fed8f558b79e7f8ac49bbfc1158f5 /libpod/define
parente04e567b96cafae30863c7782f7bc10c55bfb681 (diff)
parentcddfe3983be63ee5193a19fb6669600f059a839f (diff)
downloadpodman-464aa36b0cc5cf2066380184eb1bb014107a1ca9.tar.gz
podman-464aa36b0cc5cf2066380184eb1bb014107a1ca9.tar.bz2
podman-464aa36b0cc5cf2066380184eb1bb014107a1ca9.zip
Merge pull request #8081 from mheon/pod_degraded
Add a Degraded state to pods
Diffstat (limited to 'libpod/define')
-rw-r--r--libpod/define/podstate.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/libpod/define/podstate.go b/libpod/define/podstate.go
index 2b59aabfb..e02671972 100644
--- a/libpod/define/podstate.go
+++ b/libpod/define/podstate.go
@@ -10,9 +10,12 @@ const (
PodStateExited = "Exited"
// PodStatePaused indicates the pod has been paused
PodStatePaused = "Paused"
- // PodStateRunning indicates that one or more of the containers in
- // the pod is running
+ // PodStateRunning indicates that all of the containers in the pod are
+ // running.
PodStateRunning = "Running"
+ // PodStateDegraded indicates that at least one, but not all, of the
+ // containers in the pod are running.
+ PodStateDegraded = "Degraded"
// PodStateStopped indicates all of the containers belonging to the pod
// are stopped.
PodStateStopped = "Stopped"