Documentation ¶
Overview ¶
Package agent implements Flatcar Linux Update Operator agent, which role is to run on every Flatcar Node on the cluster, watch update_engine for status updates, propagate them to operator via Node labels and annotations and react on operator decisions about when to drain a node and reboot to finish upgrade process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.9.0
type Config struct { NodeName string PodDeletionGracePeriod time.Duration Clientset kubernetes.Interface StatusReceiver StatusReceiver Rebooter Rebooter HostFilesPrefix string PollInterval time.Duration MaxOperatorResponseTime time.Duration }
Config represents configurable options for agent.
type Klocksmith ¶
Klocksmith represents capabilities of agent.
type Rebooter ¶ added in v0.9.0
type Rebooter interface {
Reboot(bool)
}
Rebooter describes dependency of object providing capability of rebooting host machine.
type StatusReceiver ¶ added in v0.9.0
type StatusReceiver interface {
ReceiveStatuses(rcvr chan<- updateengine.Status, stop <-chan struct{})
}
StatusReceiver describe dependency of object providing status updates from update_engine.
Click to show internal directories.
Click to hide internal directories.