Documentation ¶
Overview ¶
Package operator contains main implementation of Flatcar Linux Update Operator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Kubernetes client. Client kubernetes.Interface // Annotations to look for before and after reboots. BeforeRebootAnnotations []string AfterRebootAnnotations []string // Reboot window. RebootWindowStart string RebootWindowLength string Namespace string LockID string LockType string ReconciliationPeriod time.Duration LeaderElectionLease time.Duration MaxRebootingNodes int }
Config configures a Kontroller.
type Kontroller ¶
type Kontroller struct {
// contains filtered or unexported fields
}
Kontroller implement operator part of FLUO.
func (*Kontroller) Run ¶
func (k *Kontroller) Run(stop <-chan struct{}) error
Run starts the operator reconcilitation process and runs until the stop channel is closed.
type Periodic ¶ added in v0.9.0
type Periodic struct {
// contains filtered or unexported fields
}
Periodic keeps track of a repeating period of time.
func ParsePeriodic ¶ added in v0.9.0
ParsePeriodic returns a Periodic specified as a start and duration.
func (*Periodic) DurationToStart ¶ added in v0.9.0
DurationToStart returns the duration between the supplied time and the start of Periodic's relevant period. If we're in a period, a value <= 0 is returned, indicating how deep into period we are. If we're outside a period, a value > 0 is returned, indicating how long before the next period starts.