terrajet icon indicating copy to clipboard operation
terrajet copied to clipboard

Having a purge CRD helper

Open remyleone opened this issue 2 years ago • 4 comments

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?

remyleone avatar Feb 03 '22 10:02 remyleone

Would kubectl get crds -o name | grep 'crossplane.io' | xargs kubectl delete crd be helpful here?

muvaf avatar Feb 03 '22 11:02 muvaf

or kubectl delete -f package/crds/ ?

turkenh avatar Feb 07 '22 09:02 turkenh

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

remyleone avatar Feb 07 '22 09:02 remyleone

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.

stale[bot] avatar Aug 13 '22 00:08 stale[bot]