rancher/rancher · error
minWait must be at least 1 second
Error message
minWait must be at least 1 second
What it means
Error "minWait must be at least 1 second" thrown in rancher/rancher.
Source
Thrown at pkg/controllers/dashboard/helm/repo_oci.go:388
// Default Values for exponentialBackOff function which is used
// to retry an HTTP call when 429 response code is hit.
policy := defaultOCIRetryPolicy
if !registry.IsOCI(clusterRepo.Spec.URL) {
policy = defaultHandlerErrRetryPolicy
}
if clusterRepo.Spec.ExponentialBackOffValues != nil {
// Set MaxRetry if specified and valid
if clusterRepo.Spec.ExponentialBackOffValues.MaxRetries > 0 {
policy.MaxRetry = clusterRepo.Spec.ExponentialBackOffValues.MaxRetries
}
// Set MinWait if specified and valid
if clusterRepo.Spec.ExponentialBackOffValues.MinWait >= 1 {
policy.MinWait = time.Duration(clusterRepo.Spec.ExponentialBackOffValues.MinWait) * time.Second
} else if clusterRepo.Spec.ExponentialBackOffValues.MinWait != 0 {
return policy, errors.New("minWait must be at least 1 second")
}
// Set MaxWait if specified and valid
if clusterRepo.Spec.ExponentialBackOffValues.MaxWait > 0 {
policy.MaxWait = time.Duration(clusterRepo.Spec.ExponentialBackOffValues.MaxWait) * time.Second
}
}
// Ensure MaxWait is not less than MinWait
if policy.MaxWait < policy.MinWait {
return policy, errors.New("maxWait must be greater than or equal to minWait")
}
return policy, nil
}
View on GitHub (pinned to 932558d4e6)
When it happens
Trigger: Thrown at pkg/controllers/dashboard/helm/repo_oci.go:388 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of rancher/rancher@932558d4e6 (2026-08-16).
Data as JSON: /api/errors/466f5f9ca880bcaf.
Report an issue: GitHub.