membercluster

package
v0.9.0-branch-763 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package membercluster features a controller that enqueues CRPs on member cluster changes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	// Client is a (cached) client for accessing the Kubernetes API server.
	Client client.Client

	// SchedulerWorkQueue is the work queue for the scheduler.
	SchedulerWorkQueue queue.ClusterResourcePlacementSchedulingQueueWriter

	// clusterEligibilityCheck helps check if a cluster is eligible for resource replacement.
	ClusterEligibilityChecker *clustereligibilitychecker.ClusterEligibilityChecker
}

Reconciler is the member cluster controller reconciler.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile reconciles a member cluster.

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager builds a controller with Reconciler and sets it up with a controller manager.

Jump to

Keyboard shortcuts

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