conditions

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	StatePrefix = "SlurmNodeState"

	// Slurm Base States
	PodConditionAllocated corev1.PodConditionType = StatePrefix + "Allocated"
	PodConditionDown      corev1.PodConditionType = StatePrefix + "Down"
	PodConditionError     corev1.PodConditionType = StatePrefix + "Error"
	PodConditionFuture    corev1.PodConditionType = StatePrefix + "Future"
	PodConditionIdle      corev1.PodConditionType = StatePrefix + "Idle"
	PodConditionMixed     corev1.PodConditionType = StatePrefix + "Mixed"
	PodConditionUnknown   corev1.PodConditionType = StatePrefix + "Unknown"

	// Slurm Flag States
	PodConditionCompleting    corev1.PodConditionType = StatePrefix + "Completing"
	PodConditionDrain         corev1.PodConditionType = StatePrefix + "Drain"
	PodConditionFail          corev1.PodConditionType = StatePrefix + "Fail"
	PodConditionInvalid       corev1.PodConditionType = StatePrefix + "Invalid"
	PodConditionInvalidReg    corev1.PodConditionType = StatePrefix + "InvalidReg"
	PodConditionMaintenance   corev1.PodConditionType = StatePrefix + "Maintenance"
	PodConditionNotResponding corev1.PodConditionType = StatePrefix + "NotResponding"
	PodConditionUndrain       corev1.PodConditionType = StatePrefix + "Undrain"
)

Variables

This section is empty.

Functions

func IsConditionTrue

func IsConditionTrue(status *corev1.PodStatus, condType corev1.PodConditionType) bool

func IsNodeBusy

func IsNodeBusy(status *corev1.PodStatus) bool

Busy is a conceptual state that means work is happening on the node.

func IsNodeDrain

func IsNodeDrain(status *corev1.PodStatus) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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