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 ¶
AddToManager adds a controller with the default Options.
func AddToManagerWithOptions ¶
func AddToManagerWithOptions(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(machineImages []config.MachineImage, controllerConfig config.ControllerConfiguration) worker.Actuator
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.
Click to show internal directories.
Click to hide internal directories.