controllers

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdadmConfigReconciler

type EtcdadmConfigReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme

	EtcdadmInitLock InitLocker
}

EtcdadmConfigReconciler reconciles a EtcdadmConfig object

func (*EtcdadmConfigReconciler) ClusterToEtcdadmConfigs

func (r *EtcdadmConfigReconciler) ClusterToEtcdadmConfigs(ctx context.Context, o client.Object) []ctrl.Request

ClusterToEtcdadmConfigs is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of EtcdadmConfigs.

func (*EtcdadmConfigReconciler) MachineToBootstrapMapFunc

func (r *EtcdadmConfigReconciler) MachineToBootstrapMapFunc(ctx context.Context, o client.Object) []ctrl.Request

MachineToBootstrapMapFunc is a handler.ToRequestsFunc to be used to enqueue requests for reconciliation of EtcdadmConfig.

func (*EtcdadmConfigReconciler) Reconcile

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

func (*EtcdadmConfigReconciler) SetupWithManager

func (r *EtcdadmConfigReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

type InitLocker

type InitLocker interface {
	Lock(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) bool
	Unlock(ctx context.Context, cluster *clusterv1.Cluster) bool
}

InitLocker is a lock that is used around etcdadm init

type Scope

type Scope struct {
	logr.Logger
	Config  *etcdbootstrapv1.EtcdadmConfig
	Cluster *clusterv1.Cluster
	Machine *clusterv1.Machine
}

Jump to

Keyboard shortcuts

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