state

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: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BFCFGDir    = "bfcfg"
	UserDataDir = "user-data"
)

Variables

This section is empty.

Functions

func BF3CFGFile

func BF3CFGFile(dpu *provisioningv1.DPU) string

BF3CFGFile returns the bf.cfg file written for a BlueField-3 DPU. The name carries no extension.

func BF4UserDataDir

func BF4UserDataDir(dpu *provisioningv1.DPU) string

BF4UserDataDir returns the directory of cloud-init seed artifacts written for a BlueField-4 DPU.

func RemoveArtifacts

func RemoveArtifacts(dpu *provisioningv1.DPU) error

RemoveArtifacts deletes the artifacts a DPU owns on the shared BFB volume. Both kinds are removed regardless of DPU type, as the DPUDevice carrying that type may already be gone.

func RemoveDpuDeviceFinalizer

func RemoveDpuDeviceFinalizer(ctx context.Context, dpu *provisioningv1.DPU, ctrlCtx *dutil.ControllerContext) error

RemoveDpuDeviceFinalizer removes the DpuDevice finalizer when DPU is being deleted. Exported so mock.Deleting can reuse it for tests that expect finalizer removal.

func RemoveRequestorFromDPUNodeMaintenance

func RemoveRequestorFromDPUNodeMaintenance(ctx context.Context, dpu *provisioningv1.DPU, ctrlCtx *dutil.ControllerContext) error

Types

type DefaultDPUArtifactGenerator

type DefaultDPUArtifactGenerator struct {
	ServiceAccountCAPath string
}

func (*DefaultDPUArtifactGenerator) GenerateBF3

func (*DefaultDPUArtifactGenerator) GenerateBF4

Directories

Path Synopsis
diag
Package diag translates Redfish task / SEL telemetry into operator-actionable hints.
Package diag translates Redfish task / SEL telemetry into operator-actionable hints.

Jump to

Keyboard shortcuts

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