(spec *nvidiav1alpha1.NVIDIADriverSpec, nodePool nodePool)
| 546 | } |
| 547 | |
| 548 | func 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 | |
| 558 | func sanitizeDriverLabels(labels map[string]string) map[string]string { |
| 559 | sanitizedLabels := make(map[string]string) |
no test coverage detected