mirror of
				https://github.com/containers/podman.git
				synced 2025-11-01 02:42:11 +08:00 
			
		
		
		
	 cddfe3983b
			
		
	
	cddfe3983b
	
	
	
		
			
			Make a distinction between pods that are completely running (all containers running) and those that have some containers going, but not all, by introducing an intermediate state between Stopped and Running called Degraded. A Degraded pod has at least one, but not all, containers running; a Running pod has all containers running. First step to a solution for #7213. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
		
			
				
	
	
		
			23 lines
		
	
	
		
			817 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			817 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package define
 | |
| 
 | |
| const (
 | |
| 	// PodStateCreated indicates the pod is created but has not been started
 | |
| 	PodStateCreated = "Created"
 | |
| 	// PodStateErrored indicates the pod is in an errored state where
 | |
| 	// information about it can no longer be retrieved
 | |
| 	PodStateErrored = "Error"
 | |
| 	// PodStateExited indicates the pod ran but has been stopped
 | |
| 	PodStateExited = "Exited"
 | |
| 	// PodStatePaused indicates the pod has been paused
 | |
| 	PodStatePaused = "Paused"
 | |
| 	// 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"
 | |
| )
 |