initcontroller

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

Documentation

Overview

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

Index

Constants

View Source
const (
	ControllerName = "initagent-init"
)

Variables

This section is empty.

Functions

func Create

func Create(
	remoteManager mcmanager.Manager,
	targetProvider InitTargetProvider,
	sourceFactory *source.Factory,
	clusterApplier manifest.ClusterApplier,
	initializer kcpcorev1alpha1.LogicalClusterInitializer,
	log *zap.SugaredLogger,
	numWorkers int,
) error

Create creates a new controller and importantly does *not* add it to the manager, as this controller is started/stopped by the syncmanager controller instead.

Types

type InitTargetProvider

type InitTargetProvider func(ctx context.Context) (*initializationv1alpha1.InitTarget, error)

type Reconciler

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

func (*Reconciler) Reconcile

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

Jump to

Keyboard shortcuts

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