controllers

package
v1.0.0-beta.33 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 58 Imported by: 0

Documentation

Overview

Package controllers implements controller types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IgnoreHetznerClusterConditionUpdates

func IgnoreHetznerClusterConditionUpdates(logger logr.Logger) predicate.Funcs

IgnoreHetznerClusterConditionUpdates is a predicate used for ignoring HetznerCluster condition updates.

Types

type GuestCSRReconciler

type GuestCSRReconciler struct {
	client.Client
	WatchFilterValue string
	// contains filtered or unexported fields
}

GuestCSRReconciler reconciles a CSR object.

func (*GuestCSRReconciler) Reconcile

func (r *GuestCSRReconciler) Reconcile(ctx context.Context, req reconcile.Request) (_ reconcile.Result, reterr error)

Reconcile manages the lifecycle of a CSR object.

func (*GuestCSRReconciler) SetupWithManager

func (r *GuestCSRReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

SetupWithManager sets up the controller with the Manager.

type HCloudMachineReconciler

type HCloudMachineReconciler struct {
	client.Client
	RateLimitWaitTime   time.Duration
	APIReader           client.Reader
	HCloudClientFactory hcloudclient.Factory
	WatchFilterValue    string
}

HCloudMachineReconciler reconciles a HCloudMachine object.

func (*HCloudMachineReconciler) HetznerClusterToHCloudMachines

func (r *HCloudMachineReconciler) HetznerClusterToHCloudMachines(_ context.Context) handler.MapFunc

HetznerClusterToHCloudMachines is a handler.ToRequestsFunc to be used to enqueue requests for reconciliation of HCloudMachines.

func (*HCloudMachineReconciler) Reconcile

func (r *HCloudMachineReconciler) Reconcile(ctx context.Context, req reconcile.Request) (_ reconcile.Result, reterr error)

Reconcile manages the lifecycle of an HCloud machine object.

func (*HCloudMachineReconciler) SetupWithManager

func (r *HCloudMachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

SetupWithManager sets up the controller with the Manager.

type HCloudMachineTemplateReconciler

type HCloudMachineTemplateReconciler struct {
	client.Client
	RateLimitWaitTime   time.Duration
	APIReader           client.Reader
	HCloudClientFactory hcloudclient.Factory
	WatchFilterValue    string
}

HCloudMachineTemplateReconciler reconciles a HCloudMachineTemplate object.

func (*HCloudMachineTemplateReconciler) Reconcile

Reconcile manages the lifecycle of an HCloudMachineTemplate object.

func (*HCloudMachineTemplateReconciler) SetupWithManager

func (r *HCloudMachineTemplateReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

type HCloudRemediationReconciler

type HCloudRemediationReconciler struct {
	client.Client
	RateLimitWaitTime   time.Duration
	APIReader           client.Reader
	HCloudClientFactory hcloudclient.Factory
	WatchFilterValue    string
}

HCloudRemediationReconciler reconciles a HCloudRemediation object.

func (*HCloudRemediationReconciler) Reconcile

Reconcile reconciles the hetznerHCloudRemediation object.

func (*HCloudRemediationReconciler) SetupWithManager

func (r *HCloudRemediationReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

SetupWithManager sets up the controller with the Manager.

type HetznerBareMetalHostReconciler

type HetznerBareMetalHostReconciler struct {
	client.Client
	RateLimitWaitTime  time.Duration
	APIReader          client.Reader
	RobotClientFactory robotclient.Factory
	SSHClientFactory   sshclient.Factory
	WatchFilterValue   string
}

HetznerBareMetalHostReconciler reconciles a HetznerBareMetalHost object.

func (*HetznerBareMetalHostReconciler) Reconcile

func (r *HetznerBareMetalHostReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, reterr error)

Reconcile implements the reconcilement of HetznerBareMetalHost objects.

func (*HetznerBareMetalHostReconciler) SetupWithManager

func (r *HetznerBareMetalHostReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

SetupWithManager sets up the controller with the Manager.

type HetznerBareMetalMachineReconciler

type HetznerBareMetalMachineReconciler struct {
	client.Client
	APIReader           client.Reader
	RateLimitWaitTime   time.Duration
	HCloudClientFactory hcloudclient.Factory
	WatchFilterValue    string
}

HetznerBareMetalMachineReconciler reconciles a HetznerBareMetalMachine object.

func (*HetznerBareMetalMachineReconciler) BareMetalHostToBareMetalMachines

func (r *HetznerBareMetalMachineReconciler) BareMetalHostToBareMetalMachines(log logr.Logger) handler.MapFunc

BareMetalHostToBareMetalMachines will return a reconcile request for a BareMetalMachine if the event is for a BareMetalHost and that BareMetalHost references a BareMetalMachine.

func (*HetznerBareMetalMachineReconciler) ClusterToBareMetalMachines

func (r *HetznerBareMetalMachineReconciler) ClusterToBareMetalMachines(ctx context.Context, log logr.Logger) handler.MapFunc

ClusterToBareMetalMachines is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of BareMetalMachines.

func (*HetznerBareMetalMachineReconciler) HetznerClusterToBareMetalMachines

func (r *HetznerBareMetalMachineReconciler) HetznerClusterToBareMetalMachines(ctx context.Context, log logr.Logger) handler.MapFunc

HetznerClusterToBareMetalMachines is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of BareMetalMachines.

func (*HetznerBareMetalMachineReconciler) Reconcile

Reconcile implements the reconcilement of HetznerBareMetalMachine objects.

func (*HetznerBareMetalMachineReconciler) SetupWithManager

func (r *HetznerBareMetalMachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

SetupWithManager sets up the controller with the Manager.

type HetznerBareMetalRemediationReconciler

type HetznerBareMetalRemediationReconciler struct {
	client.Client
	WatchFilterValue string
}

HetznerBareMetalRemediationReconciler reconciles a HetznerBareMetalRemediation object.

func (*HetznerBareMetalRemediationReconciler) Reconcile

Reconcile reconciles the hetznerBareMetalRemediation object.

func (*HetznerBareMetalRemediationReconciler) SetupWithManager

SetupWithManager sets up the controller with the Manager.

type HetznerClusterReconciler

type HetznerClusterReconciler struct {
	client.Client
	RateLimitWaitTime   time.Duration
	APIReader           client.Reader
	HCloudClientFactory hcloudclient.Factory

	TargetClusterManagersWaitGroup *sync.WaitGroup
	WatchFilterValue               string
	// contains filtered or unexported fields
}

HetznerClusterReconciler reconciles a HetznerCluster object.

func (*HetznerClusterReconciler) Reconcile

func (r *HetznerClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

Reconcile manages the lifecycle of a HetznerCluster object.

func (*HetznerClusterReconciler) SetupWithManager

func (r *HetznerClusterReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

SetupWithManager sets up the controller with the Manager.

type ManagementCluster

type ManagementCluster interface {
	client.Client
	Namespace() string
}

ManagementCluster defines an interface.

Jump to

Keyboard shortcuts

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