steps

package
v0.0.0-...-c7d55cc Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConditionManager

type ConditionManager interface {
	// GetManagedConditions return a list of condition the step might update
	GetManagedConditions() condition.Conditions
}

type Conditions

type Conditions[T InstanceWithConditions, R reconcile.Req[T]] struct {
	reconcile.BaseStep[T, R]
	// contains filtered or unexported fields
}

Conditions is a generic step that automatically initialize the conditions list of the instance Status and ensures that Ready condition is updated before the CR is saved. It requires that the CRD type T implements the InstanceWithConditions interface. It collects the conditions managed by other steps to make it so.

func (Conditions[T, R]) Do

func (s Conditions[T, R]) Do(r R, log logr.Logger) reconcile.Result

func (Conditions[T, R]) GetName

func (s Conditions[T, R]) GetName() string

func (Conditions[T, R]) Post

func (s Conditions[T, R]) Post(r R, log logr.Logger) reconcile.Result

func (*Conditions[T, R]) Setup

func (s *Conditions[T, R]) Setup(
	steps []reconcile.Step[T, R],
	log logr.Logger,
)

type InstanceWithConditions

type InstanceWithConditions interface {
	client.Object

	GetConditions() condition.Conditions
	SetConditions(condition.Conditions)
}

Jump to

Keyboard shortcuts

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