This short document describes a way to migrate a Crossplane provider to crossplane-runtime v2 and add namespace-scoped managed resources. The described changes have been implemented in crossplane-contrib/provider-argocd#348.
This is the shortest and easiest step. The runtime is most backwards compatible. Some things need to be changed, however.
Most notably, the v1 resource.Managed
property has been renamed to resource.LegacyManaged
.
The new namespace resource interface is resource.ModernManaged
.