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 IsFirstConvergeTask ¶
func NewConvergeModulesTask ¶
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" // KubeConfigChanged is a converge started after changing ConfigMap. KubeConfigChanged ConvergeEvent = "KubeConfigChanged" // ReloadAllModules is a converge queued to the 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 { Phase ConvergePhase FirstRunPhase firstConvergePhase FirstRunDoneC chan struct{} StartedAt int64 Activation string }
func NewConvergeState ¶
func NewConvergeState() *ConvergeState
func (*ConvergeState) SetFirstRunPhase ¶
func (cs *ConvergeState) SetFirstRunPhase(ph firstConvergePhase)
Click to show internal directories.
Click to hide internal directories.