targetcontroller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package targetcontroller contains a controller that, using a DynamicMultiClusterManager, starts and stop sync controllers for each of the PublishedResources.

Index

Constants

View Source
const (
	ControllerName = "initagent-target-controller"
)

Variables

This section is empty.

Functions

func Add

func Add(
	ctx context.Context,
	mgr manager.Manager,
	log *zap.SugaredLogger,
	targetFilter labels.Selector,
	clusterClient kcp.ClusterClient,
	newInitController NewInitControllerFunc,
) error

Add creates a new controller and adds it to the given manager.

Types

type NewInitControllerFunc

type NewInitControllerFunc func(remoteManager mcmanager.Manager, targetProvider initcontroller.InitTargetProvider, initializer kcpcorev1alpha1.LogicalClusterInitializer) error

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

func (*Reconciler) Reconcile

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

Jump to

Keyboard shortcuts

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