(spec *nvidiav1alpha1.NVIDIADriverSpec)
| 531 | } |
| 532 | |
| 533 | func getDefaultStartupProbe(spec *nvidiav1alpha1.NVIDIADriverSpec) *nvidiav1alpha1.ContainerProbeSpec { |
| 534 | initialDelaySeconds := int32(60) |
| 535 | if spec.UsePrecompiledDrivers() { |
| 536 | initialDelaySeconds = 5 |
| 537 | } |
| 538 | |
| 539 | return &nvidiav1alpha1.ContainerProbeSpec{ |
| 540 | InitialDelaySeconds: initialDelaySeconds, |
| 541 | TimeoutSeconds: 60, |
| 542 | PeriodSeconds: 10, |
| 543 | SuccessThreshold: 1, |
| 544 | FailureThreshold: 120, |
| 545 | } |
| 546 | } |
| 547 | |
| 548 | func getDriverImagePath(spec *nvidiav1alpha1.NVIDIADriverSpec, nodePool nodePool) (string, error) { |
| 549 | os := nodePool.osTag |
no test coverage detected