index

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: 5 Imported by: 0

Documentation

Overview

Package index provides indexes for the api.

Index

Constants

View Source
const (
	// MinerPodNameField is used by the Miner Controller to index Miners by Pod name, and add a watch on Pods.
	MinerPodNameField = "status.podRef.name"
)

Variables

This section is empty.

Functions

func AddDefaultIndexes

func AddDefaultIndexes(ctx context.Context, mgr ctrl.Manager) error

AddDefaultIndexes registers the default list of indexes.

func ByMinerPod

func ByMinerPod(ctx context.Context, mgr ctrl.Manager) error

ByMinerPod adds the miner pod name index to the managers cache.

func MinerByPodName

func MinerByPodName(o client.Object) []string

MinerByPodName contains the logic to index Miners by Pod name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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