dpuagent

package
v0.1.0-latest-stable Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBootstrapAbortErr

func IsBootstrapAbortErr(err error) bool

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

func (d *DPUAgent) Run(ctx context.Context) error

func (*DPUAgent) Shutdown

func (d *DPUAgent) Shutdown() error

Shutdown releases resources that remain available after provisioning completes.

func (*DPUAgent) StartCACertUpdateLoop

func (d *DPUAgent) StartCACertUpdateLoop(ctx context.Context)

StartCACertUpdateLoop starts the background CA certificate update loop.

func (*DPUAgent) StartDPUReconcileLoop

func (d *DPUAgent) StartDPUReconcileLoop(ctx context.Context)

StartDPUReconcileLoop starts the owned-DPU watch/reconcile loop in background.

func (*DPUAgent) StartNICRuntimeConfigLoop

func (d *DPUAgent) StartNICRuntimeConfigLoop(ctx context.Context)

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

func (d *DPUAgent) StartSPIREAttestorLoop(ctx context.Context)

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
dns
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.

Jump to

Keyboard shortcuts

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