pub fn validate_restore(spec: &RestoreSpec) -> ValidationResultExpand description
A Restore spec is internally consistent (ADR §3.6/§4.6).
The externally-tagged RestoreSource/RestoreTarget enums already guarantee
exactly one variant — that is a compile-time/serde invariant, not re-checked
here. We validate the cross-field rules the enums can’t express:
source.identityrequiresspec.repository(nothing else can derive it).- if
target: pvc, the template must name the PVC (namenon-empty).