agent

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0, MIT Imports: 23 Imported by: 0

Documentation

Overview

Agent communicates bidirectionally with the host platform - Bottlerocket - and its managing controller to execute update operations in a coordinated manner. The Agent is responsible for publishing its update state, host state, and executing on permitted actions as indicated by the Controller.

The Agent is intentionally simplistic in that it makes no decision about its next steps short of interpreting what's communicated by way of agreed upon state transition indicators.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

Agent is a privileged on-host process that acts on communicated Intents from the controller. Its event loop hinges off of a Kubernetes Informer which feeds it metadata and Intent data.

The Agent only acts as directed, its logic covers safety checks and related on-host responsibilities. Larger coordination and gating is handled by the controller.

func New

func New(log logging.Logger, kube kubernetes.Interface, nodeName string) (*Agent, error)

func (*Agent) Run

func (a *Agent) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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