timoni icon indicating copy to clipboard operation
timoni copied to clipboard

Delete without removing CRDs

Open salotz opened this issue 1 year ago • 3 comments

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.

salotz avatar Mar 19 '24 20:03 salotz

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

stefanprodan avatar Mar 25 '24 08:03 stefanprodan

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

salotz avatar Mar 25 '24 15:03 salotz

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?

nalum avatar Mar 25 '24 18:03 nalum