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

Method runValidation

cmd/nvidia-validator/main.go:1256–1269  ·  view source on GitHub ↗
(silent bool)

Source from the content-addressed store, hash-verified

1254}
1255
1256func (m *MOFED) runValidation(silent bool) error {
1257 // check for mlx5_core module to be loaded
1258 command := shell
1259 args := []string{"-c", "lsmod | grep mlx5_core"}
1260
1261 // If MOFED container is running then use readiness flag set by the driver container instead
1262 if os.Getenv(UseHostMOFEDEnvname) != "true" {
1263 args = []string{"-c", "stat /run/mellanox/drivers/.driver-ready"}
1264 }
1265 if withWaitFlag {
1266 return runCommandWithWait(command, args, sleepIntervalSecondsFlag, silent)
1267 }
1268 return runCommand(command, args, silent)
1269}
1270
1271func (m *MOFED) setKubeClient(kubeClient kubernetes.Interface) {
1272 m.kubeClient = kubeClient

Callers 1

validateMethod · 0.95

Calls 2

runCommandWithWaitFunction · 0.85
runCommandFunction · 0.85

Tested by

no test coverage detected