terrajet
terrajet copied to clipboard
Having a purge CRD helper
What problem are you facing?
After adding all CRDs using kubectl apply -f package/crds
sometimes I want to purge them all from the cluster because their signature changed.
At the moment my options would require to manually delete them all from an interface.
Could we have a shortcut in the makefile that make it easy to purge all crossplane CRD for a given provider?
How could Terrajet help solve your problem?
Would kubectl get crds -o name | grep 'crossplane.io' | xargs kubectl delete crd
be helpful here?
or kubectl delete -f package/crds/
?
I've had many examples where I was unable to delete those resources. Maybe it would be helpful to have also in the command a command that ensure that all finalizers are passing:
$ kubectl patch namespace.registry.scaleway.jet.crossplane.io/foobar -p '{"metadata":{"finalizers":null}}' --type=merge
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.