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

Function isValidWorkloadConfig

cmd/nvidia-validator/main.go:471–475  ·  view source on GitHub ↗
(config string)

Source from the content-addressed store, hash-verified

469}
470
471func isValidWorkloadConfig(config string) bool {
472 return config == gpuWorkloadConfigContainer ||
473 config == gpuWorkloadConfigVMPassthrough ||
474 config == gpuWorkloadConfigVMVgpu
475}
476
477func getWorkloadConfig(ctx context.Context) (string, error) {
478 // check if default workload is overridden by flag

Callers 1

getWorkloadConfigFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected