controllers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: Apache-2.0 Imports: 28 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(o handler.MapObject) []ctrl.Request

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

func (*EtcdadmConfigReconciler) MachineToBootstrapMapFunc

func (r *EtcdadmConfigReconciler) MachineToBootstrapMapFunc(o handler.MapObject) []ctrl.Request

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

func (*EtcdadmConfigReconciler) Reconcile

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

func (*EtcdadmConfigReconciler) SetupWithManager

func (r *EtcdadmConfigReconciler) SetupWithManager(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  *bootstrapv1alpha3.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