Skip to main content

repository_ref_for

Function repository_ref_for 

Source
pub fn repository_ref_for(snap: &Snapshot) -> Option<RepositoryRef>
Expand description

Derive the repository a Snapshot belongs to: a produced snapshot pins it in status.resolved.repository; a discovered snapshot carries its Repository/ClusterRepository as the controller ownerReference (it has no resolved block). Pure. Shared by the Restore reconciler (spec.repository derivation for snapshotRef) and the kubectl kopiur browse data-plane, so the derivation rule cannot fork.