Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete without removing CRDs #370

Open
salotz opened this issue Mar 19, 2024 · 3 comments
Open

Delete without removing CRDs #370

salotz opened this issue Mar 19, 2024 · 3 comments

Comments

@salotz
Copy link

salotz commented Mar 19, 2024

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
Copy link
Owner

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

@salotz
Copy link
Author

salotz commented Mar 25, 2024

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

@Nalum
Copy link
Contributor

Nalum commented Mar 25, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants