dpuset

package
v0.0.0-...-5d6b406 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// controller name that will be used when
	DPUSetControllerName = "dpuset"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DPUSetOptions

type DPUSetOptions struct {
	DPUInstallInterface string
}

type DPUSetReconciler

type DPUSetReconciler struct {
	client.Client
	Options  DPUSetOptions
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

DPUSetReconciler reconciles a DPUSet object

func (*DPUSetReconciler) GetDPUsMap

func (r *DPUSetReconciler) GetDPUsMap(ctx context.Context, dpuSet *provisioningv1.DPUSet) (map[string]provisioningv1.DPU, error)

func (*DPUSetReconciler) Handle

func (*DPUSetReconciler) Reconcile

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

func (*DPUSetReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*DPUSetReconciler) UpdateDPUSetStatus

func (r *DPUSetReconciler) UpdateDPUSetStatus(ctx context.Context, dpuSet *provisioningv1.DPUSet, dpusChanged bool) error

func (*DPUSetReconciler) UpdateDPUs

func (r *DPUSetReconciler) UpdateDPUs(ctx context.Context, dpuSet *provisioningv1.DPUSet, dpuMap map[string]provisioningv1.DPU) (bool, error)

UpdateDPUs updates the DPUs in the DPUSet. in this function, it will: 1. update the node labels for DPUs 2. update the NodeEffect Action fields for DPUs 3. update the ApplyOnLabelChange field for DPUs 4. update the NodeMaintenanceAdditionalRequestors field for DPUs Returns true if any DPUs were updated, false otherwise.

Jump to

Keyboard shortcuts

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