transitioner

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CycleNodeStatusTransitioner

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

CycleNodeStatusTransitioner takes a cycleNodeStatus and attempts to transition it to the next phase

func NewCycleNodeStatusTransitioner

func NewCycleNodeStatusTransitioner(
	cycleNodeStatus *v1.CycleNodeStatus,
	rm *controller.ResourceManager,
	options Options,
) *CycleNodeStatusTransitioner

NewCycleNodeStatusTransitioner returns a new cycleNodeStatus transitioner

func (*CycleNodeStatusTransitioner) Run

Run runs the CycleNodeStatusTransitioner and returns a reconcile result and an error

type Options added in v1.5.0

type Options struct {
	// DefaultCNScyclingExpiry controls how long until the CycleNodeStatus will timeout
	DefaultCNScyclingExpiry time.Duration
	// UnhealthyPodTerminationThreshold controls how long we tolerate a pod being unhealthy and holding up the
	// CycleNodeStatus before forcibly removing it
	UnhealthyPodTerminationThreshold time.Duration
}

Options stores configurable options for the NewCycleNodeStatusTransitioner

Jump to

Keyboard shortcuts

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