miner

package
v0.2.0-alpha.13 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: MIT Imports: 43 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package miner implements miner controller.

Index

Constants

This section is empty.

Variables

View Source
var ErrPodNotFound = errors.New("cannot find pod with matching ProviderID")

ErrPodNotFound signals that a corev1.Pod could not be found for the given provider id.

Functions

func HasMatchingLabels

func HasMatchingLabels(matchSelector metav1.LabelSelector, matchLabels map[string]string) bool

HasMatchingLabels verifies that the Label Selector matches the given Labels.

Types

type MinerEnv

type MinerEnv struct {
	Image *string `env:"IMAGE"`
}

func GetMinerEnv

func GetMinerEnv() MinerEnv

type Reconciler

type Reconciler struct {
	APIReader client.Reader

	DryRun          bool
	ProviderClient  kubernetes.Interface
	ProviderCluster cluster.Cluster
	RedisClient     *redis.Client
	ComponentConfig *config.MinerControllerConfiguration

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

Reconciler reconciles a Miner object.

func (*Reconciler) PodToMiners

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

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

Directories

Path Synopsis
apis

Jump to

Keyboard shortcuts

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