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 (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.