pod_status

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocatedStatus

func AllocatedStatus(status PodStatus) bool

func IsActiveAllocatedStatus

func IsActiveAllocatedStatus(statusInput PodStatus) bool

func IsActiveUsedStatus

func IsActiveUsedStatus(statusInput PodStatus) bool

func IsAliveStatus

func IsAliveStatus(statusInput PodStatus) bool

func IsPodBound

func IsPodBound(statusInput PodStatus) bool

Types

type PodStatus

type PodStatus int

PodStatus defines the status of a task/pod.

const (
	// Pending means the task is pending in the apiserver.
	Pending PodStatus = 1 << iota

	// Gated means the task is gated in the apiserver.
	Gated

	// Allocated means the scheduler assigns a host to it.
	Allocated

	// Pipelined means the scheduler assigns a host to wait for releasing resource.
	Pipelined

	// Binding means the scheduler send Bind request to apiserver.
	Binding

	// Bound means the task/Pod bounds to a host.
	Bound

	// Running means a task is running on the host.
	Running

	// Releasing means a task/pod is deleted.
	Releasing

	// Succeeded means that all containers in the pod have voluntarily terminated
	// with a container exit code of 0, and the system is not going to restart any of these containers.
	Succeeded

	// Failed means that all containers in the pod have terminated, and at least one container has
	// terminated in a failure (exited with a non-zero exit code or was stopped by the system).
	Failed

	// Unknown means the status of task/pod is unknown to the scheduler.
	Unknown

	Deleted
)

func (PodStatus) String

func (ps PodStatus) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL