podchecks

package
v0.4.48 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 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