controller

package
v0.1.0-latest-stable Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRawWatch

func RegisterRawWatch(src source.TypedSource[reconcile.Request])

RegisterRawWatch registers a typed source watch.

func RegisterWatch

func RegisterWatch(object client.Object, eventHandler handler.EventHandler, opts ...builder.WatchesOption)

Types

type ClusterHandler

type ClusterHandler interface {
	ReconcileCluster(context.Context, *provisioningv1.DPUCluster) (string, []metav1.Condition, error)
	CleanUpCluster(context.Context, *provisioningv1.DPUCluster) (bool, error)
	DPFOperatorConfigToDPUClusters(ctx context.Context, o client.Object) []reconcile.Request
	Type() string
}

type DPUClusterReconciler

type DPUClusterReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	ClusterHandler
	// contains filtered or unexported fields
}

DPUClusterReconciler reconciles a DPUCluster object

func (*DPUClusterReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the DPUCluster object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.3/pkg/reconcile

func (*DPUClusterReconciler) SetupWithManager

func (r *DPUClusterReconciler) 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