controllers

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidRef   = errors.New("invalid reference")
	ErrFailedUnlock = errors.New("failed to unlock the k3s init lock")
)

Functions

This section is empty.

Types

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 k3s init.

type KThreesConfigReconciler

type KThreesConfigReconciler struct {
	client.Client
	Log             logr.Logger
	KThreesInitLock InitLocker
	Scheme          *runtime.Scheme
}

KThreesConfigReconciler reconciles a KThreesConfig object.

func (*KThreesConfigReconciler) Reconcile

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

func (*KThreesConfigReconciler) SetupWithManager

func (r *KThreesConfigReconciler) SetupWithManager(mgr ctrl.Manager) error

type Scope

type Scope struct {
	logr.Logger
	Config      *bootstrapv1.KThreesConfig
	ConfigOwner *bsutil.ConfigOwner
	Cluster     *clusterv1.Cluster
}

Jump to

Keyboard shortcuts

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