converge

package
v1.5.0-fix-logrus-double Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	FirstNotStarted firstConvergePhase = iota
	FirstStarted
	FirstDone
)
View Source
const ConvergeEventProp = "converge.event"

Variables

This section is empty.

Functions

func IsConvergeTask

func IsConvergeTask(t sh_task.Task) bool

func IsFirstConvergeTask

func IsFirstConvergeTask(t sh_task.Task) bool

func NewApplyKubeConfigValuesTask added in v1.4.0

func NewApplyKubeConfigValuesTask(description string, logLabels map[string]string, globalValuesChanged bool) sh_task.Task

func NewConvergeModulesTask

func NewConvergeModulesTask(description string, convergeEvent ConvergeEvent, logLabels map[string]string) sh_task.Task

Types

type ConvergeEvent

type ConvergeEvent string
const (
	// OperatorStartup is a first converge during startup.
	OperatorStartup ConvergeEvent = "OperatorStartup"
	// GlobalValuesChanged is a converge initiated by changing values in the global hook.
	GlobalValuesChanged ConvergeEvent = "GlobalValuesChanged"
	// ReloadAllModules is a converge queued to the main queue after the graph's state change
	ReloadAllModules ConvergeEvent = "ReloadAllModules"
)

type ConvergePhase

type ConvergePhase string
const (
	StandBy                 ConvergePhase = "StandBy"
	RunBeforeAll            ConvergePhase = "RunBeforeAll"
	WaitBeforeAll           ConvergePhase = "WaitBeforeAll"
	WaitDeleteAndRunModules ConvergePhase = "WaitDeleteAndRunModules"
	WaitAfterAll            ConvergePhase = "WaitAfterAll"
)

type ConvergeState

type ConvergeState struct {
	PhaseLock sync.RWMutex
	Phase     ConvergePhase

	FirstRunPhase firstConvergePhase
	FirstRunDoneC chan struct{}
	StartedAt     int64
	Activation    string
	CRDsEnsured   bool
}

func NewConvergeState

func NewConvergeState() *ConvergeState

func (*ConvergeState) SetFirstRunPhase

func (cs *ConvergeState) SetFirstRunPhase(ph firstConvergePhase)

Jump to

Keyboard shortcuts

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