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

Function getNode

cmd/nvidia-validator/main.go:1500–1507  ·  view source on GitHub ↗
(ctx context.Context, kubeClient kubernetes.Interface)

Source from the content-addressed store, hash-verified

1498}
1499
1500func getNode(ctx context.Context, kubeClient kubernetes.Interface) (*corev1.Node, error) {
1501 node, err := kubeClient.CoreV1().Nodes().Get(ctx, nodeNameFlag, meta_v1.GetOptions{})
1502 if err != nil {
1503 log.Errorf("unable to get node with name %s, err %v", nodeNameFlag, err)
1504 return nil, err
1505 }
1506 return node, nil
1507}
1508
1509func (c *CUDA) validate() error {
1510 // delete status file is already present

Callers 6

getWorkloadConfigFunction · 0.85
countGPUResourcesMethod · 0.85
validateGPUResourceMethod · 0.85
getGPUResourceNameMethod · 0.85
runValidationMethod · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected