Documentation
¶
Index ¶
- Constants
- func UpdateDPUStatus(dpu *provisioningv1.DPU, next provisioningv1.DPUStatus) bool
- type DPUReconciler
- func (r *DPUReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)
- func (r *DPUReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *DPUReconciler) UpdateDPUNodeMaintenanceRequestors(ctx context.Context, dpu *provisioningv1.DPU, client client.Client) error
- type PhaseHandlerFunc
Constants ¶
View Source
const DPUControllerName = "dpu"
DPUControllerName is used when reporting events
Variables ¶
This section is empty.
Functions ¶
func UpdateDPUStatus ¶
func UpdateDPUStatus(dpu *provisioningv1.DPU, next provisioningv1.DPUStatus) bool
UpdateDPUStatus updates only dpu.Status when next differs from the current status (DeepEqual). Returns false without mutating status when unchanged. Returns true only when Phase changes after applying next; still mutates status when other fields differ so the deferred patch persists condition-only updates.
Types ¶
type DPUReconciler ¶
type DPUReconciler struct {
DPUInProvisioningMap *util.DPUInProvisioningMap
// contains filtered or unexported fields
}
DPUReconciler reconciles a DPU object
func NewDPUReconciler ¶
func NewDPUReconciler(mgr manager.Manager, alloc allocator.Allocator, joinCommandGenerator util.NodeJoinCommandGenerator, hostUptimeChecker reboot.HostUptimeChecker, options util.DPUOptions, dpuMap *util.DPUInProvisioningMap) *DPUReconciler
func (*DPUReconciler) SetupWithManager ¶
func (r *DPUReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*DPUReconciler) UpdateDPUNodeMaintenanceRequestors ¶
func (r *DPUReconciler) UpdateDPUNodeMaintenanceRequestors(ctx context.Context, dpu *provisioningv1.DPU, client client.Client) error
type PhaseHandlerFunc ¶
type PhaseHandlerFunc func(context.Context, *provisioningv1.DPU, *util.ControllerContext) (provisioningv1.DPUStatus, error)
Directories
¶
| Path | Synopsis |
|---|---|
|
redfish/diag
Package diag translates Redfish task / SEL telemetry into operator-actionable hints.
|
Package diag translates Redfish task / SEL telemetry into operator-actionable hints. |
Click to show internal directories.
Click to hide internal directories.