podchecks

package
v0.3.70-rc-c4ee772 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	EventTypeNormal = EventType(v1.EventTypeNormal)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action string
const (
	ActionFail  Action = "Fail"
	ActionRetry Action = "Retry"
)

type Checks

type Checks struct {
	Events                    []EventCheck
	ContainerStatuses         []ContainerStatusCheck
	DeadlineForUpdates        time.Duration
	DeadlineForNodeAssignment time.Duration
}

type ContainerState

type ContainerState string
const (
	ContainerStateWaiting ContainerState = "Waiting"
)

type ContainerStatusCheck

type ContainerStatusCheck struct {
	State        ContainerState
	ReasonRegexp string
	Inverse      bool
	GracePeriod  time.Duration
	Action       Action
}

type EventCheck

type EventCheck struct {
	Regexp      string
	Inverse     bool
	Type        EventType
	GracePeriod time.Duration
	Action      Action
}

type EventType

type EventType string

Jump to

Keyboard shortcuts

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