agent

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

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 Klocksmith

type Klocksmith struct {
	// contains filtered or unexported fields
}

Klocksmith implements agent part of FLUO.

func New

func New(node string, reapTimeout time.Duration) (*Klocksmith, error)

New returns initialized Klocksmith.

func (*Klocksmith) Run

func (k *Klocksmith) Run(stop <-chan struct{})

Run starts the agent to listen for an update_engine reboot signal and react by draining pods and rebooting. Runs until the stop channel is closed.

Jump to

Keyboard shortcuts

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