Uninstall the JFrog Crossplane Providers
Remove the JFrog Crossplane providers, their managed resources, and optionally Crossplane, in the required order.
Remove the JFrog Crossplane providers from your cluster. Follow the steps in the order shown.
If you remove the providers first, managed resources stay stuck in Terminating state. This happens because no active controller remains to remove their finalizers.
Prerequisites
- The providers are installed. For more information, see Install the JFrog Crossplane Providers.
Warning
- By default, deleting a managed resource in step 2 also deletes the matching JFrog object. To keep JFrog objects, complete step 1 first.
- Step 5 deletes every leftover CRD in the cluster that matches the artifactory, xray, project, or platform
crossplane.ioAPI groups.- If
lock.pkg.crossplane.io/lockstops responding, step 7 clears its finalizers.Run these steps only after you complete the earlier steps in order.
Uninstall the Providers
-
(Optional) To keep objects in JFrog after uninstallation, remove
DeletefrommanagementPolicies. For legacy resources, setdeletionPolicy: Orphan. -
Delete managed resources in dependent order:
- Watches before policies
- Environments, roles, and assignments before projects
- Virtual repositories before local and remote repositories
-
Wait until
kubectl get managed -Areturns no resources. -
Delete provider configurations:
-
For each provider, run
kubectl delete clusterproviderconfigs.<provider>.m.crossplane.io --all.Replace
<provider>with each provider's API group name:artifactory,xray,project, orplatform. -
Also delete namespaced and legacy provider configurations.
-
-
Delete the Providers. Wait until
kubectl get providerrevisionsreturns no resources. Then remove leftover CRDs:kubectl get crds -o name | grep -E '\.(artifactory|xray|project|platform)(\.m)?\.crossplane\.io$' | xargs kubectl delete -
Delete the DeploymentRuntimeConfig and the
jfrog-registryandjfrog-credsSecrets. -
(Optional) Run
helm uninstall crossplane -n crossplane-system.Helm keeps CRDs when you uninstall. Manually delete the remaining
*.crossplane.ioCRDs and the leftover Crossplane webhook configurations.If
lock.pkg.crossplane.io/lockstops responding, clear its finalizers with:kubectl patch lock.pkg.crossplane.io lock --type merge -p '{"metadata":{"finalizers":[]}}'
Next Steps
- To install the providers again, see Install the JFrog Crossplane Providers.
Updated about 1 hour ago
