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

Function nodeSelector

internal/validator/validator_test.go:70–74  ·  view source on GitHub ↗
(labels map[string]string)

Source from the content-addressed store, hash-verified

68}
69
70func nodeSelector(labels map[string]string) driverOptions {
71 return func(c *nvidiav1alpha1.NVIDIADriver) {
72 c.Spec.NodeSelector = labels
73 }
74}
75
76func labelled(labels map[string]string) nodeOptions {
77 return func(n *corev1.Node) {

Callers 1

TestCheckNodeSelectorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected