Documentation ¶
Index ¶
Constants ¶
View Source
const ( AGENT_INIT = state(iota) AGENT_WAIT_FOR_RUNNABLE AGENT_RUN_TASK AGENT_WAIT_FOR_CHANGE_STAGE AGENT_CHANGE_STAGE AGENT_EXIT AGENT_REBOOT AGENT_POWEROFF AGENT_KEXEC )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent implements a new machine agent structured as a finite state machine. There is one important behavioural change to the behaviour of the runner that may impact how workflows are built:
The RunnerWait flag in stages is no longer honored. Instead, the agent will wait by default, unless overridden by the following conditions, in order of priority:
* The next stage has the Reboot flag set.
- The change-stage/map entry for the next stage has a Stop, Reboot, or Poweroff clause.
- The machine is currently in a bootenv that ends in -install and there is nothing else to do, in which case the runner will exit
Additionally, this agent will automatically reboot the system when it detects that the machine's boot environment has changed, unless the machine is in an OS install, in which case the agent will exit.
Click to show internal directories.
Click to hide internal directories.