Documentation ¶
Index ¶
- func ChainDNSServiceNameFromMiner(namespace, name string) string
- func GenesisDNSServiceNameFromMiner(name string) string
- func GetProviderServiceName(m *v1beta1.Miner) string
- func GetReadyCondition(status *v1beta1.MinerStatus) *v1beta1.Condition
- func IsGenesisMiner(m *v1beta1.Miner) bool
- func IsMinerAvailable(m *v1beta1.Miner, minReadySeconds int32, now metav1.Time) bool
- func IsMinerHealthy(c client.Client, miner *v1beta1.Miner) bool
- func IsMinerReady(m *v1beta1.Miner) bool
- func PhaseFromPodHealthyCondition(cond *v1beta1.Condition) v1beta1.MinerPhase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProviderServiceName ¶
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 IsMinerAvailable ¶
IsMinerAvailable returns true if the pod is ready and minReadySeconds have elapsed or is 0. False otherwise.
func IsMinerHealthy ¶
IsMinerHealthy returns true if the the miner is running and miner node is healthy.
func IsMinerReady ¶
IsMinerReady returns true if a miner is ready; false otherwise.
func PhaseFromPodHealthyCondition ¶
func PhaseFromPodHealthyCondition(cond *v1beta1.Condition) v1beta1.MinerPhase
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.