chain

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package chain implements chain controller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	APIReader       client.Reader
	ComponentConfig *config.ChainControllerConfiguration

	// WatchFilterValue is the label value used to filter events prior to reconciliation.
	WatchFilterValue string
	// contains filtered or unexported fields
}

Reconciler reconciles a Chain object.

func (*Reconciler) IsConfigMapReconciled

func (r *Reconciler) IsConfigMapReconciled(ctx context.Context, ch *v1beta1.Chain) (bool, error)

func (*Reconciler) IsMinerReconciled

func (r *Reconciler) IsMinerReconciled(ctx context.Context, ch *v1beta1.Chain) (bool, error)

func (*Reconciler) MinerToChains

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

MinerToChains is a handler.ToRequestsFunc to be used to enqueue rquests for reconciliation for Chains that might adopt an orphaned Miner.

func (*Reconciler) Reconcile

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

func (*Reconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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