INNER CODE UNIT · Go
isValidComponent
NVIDIA/gpu-operator · cmd/nvidia-validator/main.go:458
func isValidComponent() bool {
switch componentFlag {
case "driver":
fallthrough
case "toolkit":
fallthrough
case "cuda":
fallthrough
case "metrics":
fallthrough
case "plugin":
fallthrough
case "mofed":
fallthrough
case "vfio-pci":
fallthrough
case "vgpu-manager":
fallthrough