Documentation
¶
Index ¶
- Constants
- type DPUSetOptions
- type DPUSetReconciler
- func (r *DPUSetReconciler) GetDPUsMap(ctx context.Context, dpuSet *provisioningv1.DPUSet) (map[string]provisioningv1.DPU, error)
- func (r *DPUSetReconciler) Handle(ctx context.Context, dpuSet *provisioningv1.DPUSet) (ctrl.Result, error)
- func (r *DPUSetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)
- func (r *DPUSetReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *DPUSetReconciler) UpdateDPUSetStatus(ctx context.Context, dpuSet *provisioningv1.DPUSet, dpusChanged bool) error
- func (r *DPUSetReconciler) UpdateDPUs(ctx context.Context, dpuSet *provisioningv1.DPUSet, ...) (bool, error)
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 (r *DPUSetReconciler) Handle(ctx context.Context, dpuSet *provisioningv1.DPUSet) (ctrl.Result, 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.
Click to show internal directories.
Click to hide internal directories.