For driver container installs, check existence of .driver-ctr-ready to confirm running driver container has completed and is in Ready state.
(silent bool)
| 698 | // For driver container installs, check existence of .driver-ctr-ready to confirm running driver |
| 699 | // container has completed and is in Ready state. |
| 700 | func 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 |
no test coverage detected