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

Function getDefaultStartupProbe

internal/state/driver.go:533–546  ·  view source on GitHub ↗
(spec *nvidiav1alpha1.NVIDIADriverSpec)

Source from the content-addressed store, hash-verified

531}
532
533func 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
548func getDriverImagePath(spec *nvidiav1alpha1.NVIDIADriverSpec, nodePool nodePool) (string, error) {
549 os := nodePool.osTag

Callers 1

getDriverSpecFunction · 0.85

Calls 1

UsePrecompiledDriversMethod · 0.45

Tested by

no test coverage detected