controller

package
v0.0.0-...-a87ae0c Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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)
	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