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

Function assertCCManagerContainerReady

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

Check that the ccManager container is ready after applying required ccMode

(silent, withWaitFlag bool)

Source from the content-addressed store, hash-verified

1867
1868// Check that the ccManager container is ready after applying required ccMode
1869func assertCCManagerContainerReady(silent, withWaitFlag bool) error {
1870 command := shell
1871 args := []string{"-c", "stat /run/nvidia/validations/.cc-manager-ctr-ready"}
1872
1873 if withWaitFlag {
1874 return runCommandWithWait(command, args, sleepIntervalSecondsFlag, silent)
1875 }
1876
1877 return runCommand(command, args, silent)
1878}
1879
1880func (v *VGPUDevices) validate() error {
1881 ctx := v.ctx

Callers 1

runValidationMethod · 0.85

Calls 2

runCommandWithWaitFunction · 0.85
runCommandFunction · 0.85

Tested by

no test coverage detected