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

Protect resources from deletion during a force update #6411

Open
wendorf opened this issue Jul 12, 2024 · 0 comments
Open

Protect resources from deletion during a force update #6411

wendorf opened this issue Jul 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@wendorf
Copy link

wendorf commented Jul 12, 2024

Describe the Feature You Want

Adding a tilt.dev/force-update-policy=keep annotation to a Kubernetes resource prevents Tilt from deleting the resource during a force update

Current Behavior

A force update will attempt to delete all managed Kubernetes resources, even those with tilt.dev/down-policy=keep.

Why Do You Want This?

I use Tilt to manage CustomResourceDefinitions. For example's sake, let's say with kind: Pizza. The application that I'm deploying with Tilt creates new Pizzas at runtime. When I trigger/restart the Tilt resource, it deletes the Pizza CRD, which causes Kubernetes to also delete all Pizzas.. This is disruptive, since Tilt is not managing the Pizzas themselves so won't recreate them, and my application state becomes inconsistent.

If I could tell Tilt to not delete my CRD during a force update, then my application's state could stay consistent.

Additional context
Add any other context or screenshots about the feature request here.

@wendorf wendorf added the enhancement New feature or request label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant