podchecks

package
v0.9.7-patch3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const EventReasonScheduled = "Scheduled"

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action int
const (
	// Order matters here, actions with higher numbers trump those with lower.
	ActionWait Action = iota
	ActionRetry
	ActionFail
)

func (Action) String

func (a Action) String() string

type Cause

type Cause int
const (
	None Cause = iota
	PodStartupIssue
	NoStatusUpdates
	NoNodeAssigned
)

type PodChecker

type PodChecker interface {
	GetAction(pod *v1.Pod, podEvents []*v1.Event, timeInState time.Duration) (Action, Cause, string)
}

type PodChecks

type PodChecks struct {
	// contains filtered or unexported fields
}

func NewPodChecks

func NewPodChecks(cfg config.Checks) (*PodChecks, error)

func (*PodChecks) GetAction

func (pc *PodChecks) GetAction(pod *v1.Pod, podEvents []*v1.Event, timeInState time.Duration) (Action, Cause, string)

Jump to

Keyboard shortcuts

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