converge

package
v1.21.27 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

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"
)

func (ConvergeEvent) String added in v1.7.0

func (e ConvergeEvent) String() string

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 {
	FirstRunDoneC chan struct{}
	StartedAt     int64
	Activation    string
	CRDsEnsured   bool
	// contains filtered or unexported fields
}

func NewConvergeState

func NewConvergeState() *ConvergeState

func (*ConvergeState) GetFirstRunPhase added in v1.7.0

func (cs *ConvergeState) GetFirstRunPhase() FirstConvergePhase

func (*ConvergeState) GetPhase added in v1.7.0

func (cs *ConvergeState) GetPhase() ConvergePhase

func (*ConvergeState) SetFirstRunPhase

func (cs *ConvergeState) SetFirstRunPhase(ph FirstConvergePhase)

func (*ConvergeState) SetOnConvergeFinish added in v1.15.10

func (cs *ConvergeState) SetOnConvergeFinish(callback func())

func (*ConvergeState) SetOnConvergeStart added in v1.15.10

func (cs *ConvergeState) SetOnConvergeStart(callback func())

func (*ConvergeState) SetPhase added in v1.7.0

func (cs *ConvergeState) SetPhase(ph ConvergePhase)

type FirstConvergePhase added in v1.7.0

type FirstConvergePhase int
const (
	FirstNotStarted FirstConvergePhase = iota
	FirstStarted
	FirstDone
)

Jump to

Keyboard shortcuts

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