miner

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChainDNSServiceNameFromMiner

func ChainDNSServiceNameFromMiner(namespace, name string) string

func GenesisDNSServiceNameFromMiner

func GenesisDNSServiceNameFromMiner(name string) string

func GetProviderServiceName

func GetProviderServiceName(m *v1beta1.Miner) string

func GetReadyCondition

func GetReadyCondition(status *v1beta1.MinerStatus) *v1beta1.Condition

GetReadyCondition extracts the ready condition from the given status and returns that. Returns nil and -1 if the condition is not present, and the index of the located condition.

func IsGenesisMiner

func IsGenesisMiner(m *v1beta1.Miner) bool

func IsMinerAvailable

func IsMinerAvailable(m *v1beta1.Miner, minReadySeconds int32, now metav1.Time) bool

IsMinerAvailable returns true if the pod is ready and minReadySeconds have elapsed or is 0. False otherwise.

func IsMinerHealthy

func IsMinerHealthy(c client.Client, miner *v1beta1.Miner) bool

IsMinerHealthy returns true if the the miner is running and miner node is healthy.

func IsMinerReady

func IsMinerReady(m *v1beta1.Miner) bool

IsMinerReady returns true if a miner is ready; false otherwise.

func PhaseFromPodHealthyCondition

func PhaseFromPodHealthyCondition(cond *v1beta1.Condition) v1beta1.MinerPhase

Types

This section is empty.

Jump to

Keyboard shortcuts

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