Documentation
¶
Index ¶
Constants ¶
View Source
const NodeClassLabel = "np.class"
View Source
const PodDurationLabel = "np.runDuration"
View Source
const PodPhaseLabel = "np.terminalPhase"
Variables ¶
This section is empty.
Functions ¶
func RunDuration ¶
Returns the specified run duration as declared in a well-known pod label. If left unset or the value cannot be parsed as a duration, defaults to 1 second.
func TerminalPhase ¶
func TerminalPhase(pod *v1.Pod) v1.PodPhase
Returns the specified terminal phase as declared in a well-known pod label. If left unset or the value does not match a known terminal phase, defaults to "Succeeded".
Types ¶
type FakeNode ¶
type FakeNode interface {
Name() string
Class() string
Start(client *kubernetes.Clientset) error
Stop() error
}
func NewFakeNode ¶
Click to show internal directories.
Click to hide internal directories.