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

Function getDriverImagePath

internal/state/driver.go:548–556  ·  view source on GitHub ↗
(spec *nvidiav1alpha1.NVIDIADriverSpec, nodePool nodePool)

Source from the content-addressed store, hash-verified

546}
547
548func getDriverImagePath(spec *nvidiav1alpha1.NVIDIADriverSpec, nodePool nodePool) (string, error) {
549 os := nodePool.osTag
550
551 if spec.UsePrecompiledDrivers() {
552 return spec.GetPrecompiledImagePath(os, nodePool.kernel)
553 }
554
555 return spec.GetImagePath(os)
556}
557
558func sanitizeDriverLabels(labels map[string]string) map[string]string {
559 sanitizedLabels := make(map[string]string)

Callers 1

getDriverSpecFunction · 0.85

Calls 3

UsePrecompiledDriversMethod · 0.45
GetImagePathMethod · 0.45

Tested by

no test coverage detected