pub fn resolve_timeout(
spec: Option<&str>,
default: Duration,
) -> Option<Duration>Expand description
Resolve an optional policy timeout string to an effective deadline duration,
with the semantics every *.timeout field shares (spec.preflight.timeout,
spec.staging.timeout): absent ⇒ default; parsed-zero (0/0s) ⇒ None
(indefinite — never expires); unparseable ⇒ default (defensive only — the
webhook rejects unparseable values at admission).