state

package
v0.0.0-...-0697e84 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	PodTemplateConfigMapKey     string = "pod-template"
	PodInfoVolumeName           string = "dpf-pod-info"
	PodInfoMountPath            string = "/etc/dpf-pod-info"
	PodInfoLabelsPath           string = "labels"
	PodInfoAnnotationsPath      string = "annotations"
	PodInfoLabelsFieldPath      string = "metadata.labels"
	PodInfoAnnotationsFieldPath string = "metadata.annotations"
	DPUNodeNameEnvVar           string = "DPUNODE_NAME"
)

Keys and paths for DPUNode pod template ConfigMap integration and pod-info volume (shared with dpunode controller).

View Source
const (
	BFCFGDir = "bfcfg"
)

Variables

This section is empty.

Functions

func InitializeDPURebootStatus

func InitializeDPURebootStatus(ctx context.Context, dpu *provisioningv1.DPU, state *provisioningv1.DPUStatus, ctrlCtx *dutil.ControllerContext, sourcePhase provisioningv1.DPUPhase) error

InitializeDPURebootStatus initializes status.rebootStatus when entering DPURebooting. It always refreshes reboot tracking to avoid carrying stale status between reboot cycles.

func Rebooting

Rebooting handles DPURebooting: validates reboot preconditions, waits for DPUCondRebooted, then moves to DPUInitializeInterface, DPUConfig (when agent reports reboot-method discovery after DPUConfig), DPUClusterConfig, or DPUHostNetworkConfiguration as appropriate.

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

This section is empty.

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