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

Struct FakeNodeSelectorValidator

controllers/nvidiadriver_controller_test.go:59–61  ·  view source on GitHub ↗

FakeNodeSelectorValidator always returns CustomError if set

Source from the content-addressed store, hash-verified

57
58// FakeNodeSelectorValidator always returns CustomError if set
59type FakeNodeSelectorValidator struct {
60 CustomError error
61}
62
63// Validate always returns CustomError if set
64func (f *FakeNodeSelectorValidator) Validate(ctx context.Context, cr *nvidiav1alpha1.NVIDIADriver) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected