worker

package
v0.22.7 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 57 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientKey key = iota
)
View Source
const (
	MutatingWebhookObjectSelectorLabel = "gardener-shoot-namespace"
)

Variables

View Source
var (
	// DefaultAddOptions are the default AddOptions for AddToManager.
	DefaultAddOptions = AddOptions{}
)

Functions

func AddToManager

func AddToManager(ctx context.Context, mgr manager.Manager) error

AddToManager adds a controller with the default Options.

func AddToManagerWithOptions

func AddToManagerWithOptions(ctx context.Context, mgr manager.Manager, opts AddOptions) error

AddToManagerWithOptions adds a controller with the given Options to the given manager. The opts.Reconciler is being set with a newly instantiated actuator.

func NewActuator

func NewActuator(mgr manager.Manager, machineImages []config.MachineImage, controllerConfig config.ControllerConfiguration) (worker.Actuator, error)

Types

type AddOptions

type AddOptions struct {
	ControllerConfig config.ControllerConfiguration
	// Controller are the controller.Options.
	Controller controller.Options
	// MachineImages is the default mapping from machine images to AMIs.
	MachineImages []config.MachineImage
	// IgnoreOperationAnnotation specifies whether to ignore the operation annotation or not.
	IgnoreOperationAnnotation bool
}

AddOptions are options to apply when adding the metal worker controller to the manager.

type InfrastructureState added in v0.21.0

type InfrastructureState struct {
	// Firewalls contains the running firewalls.
	Firewalls []string `json:"firewalls"`
}

InfrastructureState represents the last known State of an Infrastructure resource. It is saved after a reconciliation and used during restore operations. We use this for restoring firewalls, which are actually maintained by the worker controller because the worker controller does not allow adding our state to the worker resource as it is used by the MCM already.

Jump to

Keyboard shortcuts

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