pub fn normalized_repository_ref(
r: &RepositoryRef,
owner_namespace: &str,
) -> RepositoryRefExpand description
Normalize a RepositoryRef against the namespace it resolves relative to
(owner_namespace, the consuming CR’s namespace): a namespaced Repository
ref carries its EFFECTIVE namespace explicitly (so a later reader can
re-resolve it from anywhere — e.g. after the owning recipe is gone); a
cluster-scoped ClusterRepository ref carries none (the webhook forbids
one). This is the one normal form every pin uses — status.resolved.repository
(the controller’s run-time pin) and Snapshot.spec.repository (the
mint-time pin a multi-repo fan-out child or replication copy CR carries) —
so repo_key over a normalized ref is namespace-independent. Exhaustive
over RepositoryKind.