controller

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstanceClusterAccess added in v0.3.0

type InstanceClusterAccess interface {
	MCPCluster(ctx context.Context, req reconcile.Request) (*clusters.Cluster, error)
	WorkloadCluster(ctx context.Context, req reconcile.Request) (*clusters.Cluster, error)
}

The InstanceClusterAccess interface provides access to the MCP and Workload clusters for the Landscaper provider. This indirection is needed for injecting fake clusters in tests.

type LandscaperReconciler

type LandscaperReconciler struct {
	PlatformCluster         *clusters.Cluster
	OnboardingCluster       *clusters.Cluster
	ClusterAccessReconciler clusteraccess.Reconciler
	Scheme                  *runtime.Scheme

	InstanceClusterAccess InstanceClusterAccess
}

LandscaperReconciler reconciles a Landscaper object

func (*LandscaperReconciler) Reconcile

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

func (*LandscaperReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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