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

Function NewNodeSelectorValidator

internal/validator/validator.go:41–43  ·  view source on GitHub ↗

NewNodeSelectorValidator returns a new instance of nodeselector validator

(c client.Client)

Source from the content-addressed store, hash-verified

39
40// NewNodeSelectorValidator returns a new instance of nodeselector validator
41func NewNodeSelectorValidator(c client.Client) Validator {
42 return &nodeSelectorValidator{client: c}
43}
44
45// Check returns error when nodes matching with the selector labels of current instance of NVIDIADriver
46// are conflicting with other instances of NVIDIADriver

Callers 2

SetupWithManagerMethod · 0.92
TestCheckNodeSelectorFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCheckNodeSelectorFunction · 0.68