Documentation
¶
Index ¶
- func IsBootstrapAbortErr(err error) bool
- type DPUAgent
- func (d *DPUAgent) Run(ctx context.Context) error
- func (d *DPUAgent) Shutdown() error
- func (d *DPUAgent) StartCACertUpdateLoop(ctx context.Context)
- func (d *DPUAgent) StartDPUReconcileLoop(ctx context.Context)
- func (d *DPUAgent) StartNICRuntimeConfigLoop(ctx context.Context)
- func (d *DPUAgent) StartSPIREAttestorLoop(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsBootstrapAbortErr ¶
IsBootstrapAbortErr reports whether err indicates bootstrap exited for reprovision.
Types ¶
type DPUAgent ¶
type DPUAgent struct {
// contains filtered or unexported fields
}
func NewDPUAgent ¶
func NewDPUAgent(optCtx *operations.Context) *DPUAgent
func (*DPUAgent) Shutdown ¶
Shutdown releases resources that remain available after provisioning completes.
func (*DPUAgent) StartCACertUpdateLoop ¶
StartCACertUpdateLoop starts the background CA certificate update loop.
func (*DPUAgent) StartDPUReconcileLoop ¶
StartDPUReconcileLoop starts the owned-DPU watch/reconcile loop in background.
func (*DPUAgent) StartNICRuntimeConfigLoop ¶
StartNICRuntimeConfigLoop starts the post-provisioning E/W NIC runtime config loop (first apply with retry, then periodic reapply). No-op when NIC provisioning did not start a DMS session.
func (*DPUAgent) StartSPIREAttestorLoop ¶
StartSPIREAttestorLoop enables the SPIRE Kubernetes workload attestor and reports whether it is configured.
This is a loop rather than an operation because the attestor needs the kubelet client certificate, which only appears after TLS bootstrap, so waiting for it in the operation sequence would block everything behind it.
Restarting the SPIRE agent from here is safe: the DPU agent's JWT-SVID is already on disk and stays valid while the agent re-attests, and the client re-reads the token file.
Directories
¶
| Path | Synopsis |
|---|---|
|
sriovconfig
Package sriovconfig creates the SR-IOV functions a DPUFlavor declares: the Scalable Functions of spec.scalableFunctions (plus the DMA SF of spec.dma) and the Virtual Functions of spec.virtualFunctions.
|
Package sriovconfig creates the SR-IOV functions a DPUFlavor declares: the Scalable Functions of spec.scalableFunctions (plus the DMA SF of spec.dma) and the Virtual Functions of spec.virtualFunctions. |
|
Package spiffe implements the DPU Agent SPIFFE heartbeat writer.
|
Package spiffe implements the DPU Agent SPIFFE heartbeat writer. |