transitioner

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CycleNodeRequestTransitioner

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

CycleNodeRequestTransitioner takes a cycleNodeRequest and attempts to transition it to the next phase

func NewCycleNodeRequestTransitioner

func NewCycleNodeRequestTransitioner(
	cycleNodeRequest *v1.CycleNodeRequest,
	rm *controller.ResourceManager,
	options Options,
) *CycleNodeRequestTransitioner

NewCycleNodeRequestTransitioner returns a new cycleNodeRequest transitioner

func (*CycleNodeRequestTransitioner) Run

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

type Options

type Options struct {
	// DeleteCNR enables/disables deleting successful CycleNodeRequests after a certain amount of time
	DeleteCNR bool

	// DeleteCNRExpiry controls how long after the successful CycleNodeRequests was created to then try deleting it
	DeleteCNRExpiry time.Duration

	// DeleteCNRRequeue controls how often we should check if a CycleNodeRequest is ready to be deleted
	DeleteCNRRequeue time.Duration

	// HealthCheckTimeout controls the duration of the timeout period for health checks performed on nodes
	HealthCheckTimeout time.Duration
}

Options stores configurable options for the CycleNodeRequestTransitioner

Jump to

Keyboard shortcuts

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