Cluster-scoped resources in namespaced XR compositions now rejected
Previously, a function could set metadata.namespace on a cluster-scoped composed resource and pass the scope check; the API client then silently dropped the namespace when applying it.
Show release-note lines
* **Namespaced XRs can no longer compose cluster scoped resources:** A function could make a namespaced XR compose a cluster scoped resource by setting `metadata.namespace` on it, because the scope check only ran on composed resources without a namespace. Crossplane now checks the scope of every resource a namespaced XR composes, based on its kind. Backported in #8053, originally fixed in #8050. * [release-2.4] fix(composite): check scope of every resource composed by a namespaced XR by @lsviben in https://github.com/crossplane/crossplane/pull/8053github.com/crossplane/crossplane/releases/tag/v2.4.4