MCPcopy Create free account
hub / github.com/NVIDIA/gpu-operator / assertDriverContainerReady

Function assertDriverContainerReady

cmd/nvidia-validator/main.go:700–709  ·  view source on GitHub ↗

For driver container installs, check existence of .driver-ctr-ready to confirm running driver container has completed and is in Ready state.

(silent bool)

Source from the content-addressed store, hash-verified

698// For driver container installs, check existence of .driver-ctr-ready to confirm running driver
699// container has completed and is in Ready state.
700func assertDriverContainerReady(silent bool) error {
701 command := shell
702 args := []string{"-c", fmt.Sprintf("stat %s", driverContainerStatusFilePath)}
703
704 if withWaitFlag {
705 return runCommandWithWait(command, args, sleepIntervalSecondsFlag, silent)
706 }
707
708 return runCommand(command, args, silent)
709}
710
711// isDriverManagedByOperator determines if the NVIDIA driver is managed by the GPU Operator.
712// We check if at least one driver DaemonSet exists in the operator namespace that is

Callers 1

validateDriverContainerFunction · 0.85

Calls 2

runCommandWithWaitFunction · 0.85
runCommandFunction · 0.85

Tested by

no test coverage detected