podchecks

package
v0.3.75-rc-bfcba91 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

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