stefanprodan / timoni

Timoni is a package manager for Kubernetes, powered by CUE and inspired by Helm.
https://timoni.sh
Apache License 2.0
1.44k stars 64 forks source link

Delete without removing CRDs #370

Open salotz opened 3 months ago

salotz commented 3 months ago

I am debugging some things and I don't want to wait for the control loops to run to trigger events (e.g. authentication to helm repositories).

To do this I can delete the resources and re-create them. However, currently when I do timoni bundle delete ... it seems to try and remove CRDs which takes a very long time. This actually timed out for me.

It would be useful to have a flag to ignore deleting the CRDs when running delete for this kind of use case perhaps.

stefanprodan commented 3 months ago

You can annotate the CRDs and Timoni will skip deleting them, docs here: https://timoni.sh/cue/module/apply-behavior/#disable-pruning

salotz commented 3 months ago

I see, but what if they come from external module?

Nalum commented 3 months ago

This would put it in the hands of the module authors but it would make sense to have a configuration flag that would put the annotation in place if users didn't want them removed, if the external module didn't support that then opening an issue/pr against that module should suffice?