agent

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 21 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 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

type Klocksmith interface {
	Run(ctx context.Context) error
}

Klocksmith represents capabilities of agent.

func New

func New(config *Config) (Klocksmith, error)

New returns initialized klocksmith.

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.

Jump to

Keyboard shortcuts

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