minerset

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const MaxConcurrency = 30

MaxConcurrency used to prevent the high load of onex-apiserver caused by excessive concurrency, it is necessary to limit the miner create/delete concurrency.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	APIReader client.Reader

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

Reconciler reconciles a MinerSet object.

func (*Reconciler) MinerToMinerSets

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

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

func (*Reconciler) Reconcile

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

Reconcile reads that state of the OneX for a MinerSet object and makes changes based on the state read and what is in the MinerSet.Spec.

func (*Reconciler) SetupWithManager

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

Directories

Path Synopsis
apis

Jump to

Keyboard shortcuts

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