pub fn validate_failure_policy(
fp: &FailurePolicy,
context: &str,
) -> ValidationResultExpand description
Validate a FailurePolicy’s numeric fields are sane: activeDeadlineSeconds and
podStartupDeadlineSeconds must be positive (the kubelet rejects a non-positive Job
deadline, and a non-positive grace would fail every pod on its first reconcile);
backoffLimit must be non-negative. context names the owner (e.g. "Snapshot").