-
Notifications
You must be signed in to change notification settings - Fork 288
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
When deleting yaml files, k8s_yaml should delete the related resources #3137
Comments
Yes. I agree this is something we should do. We've talked about it a little in some other places (e.g. #3035). But this is a much better description of the problem I've heard in other places, so I'm going to leave this as the tracking ticket for this feature. Thanks for the request! For now, one thing I've seen people do is |
Thanks. In my case that workaround wouldn't work, because I still want to keep the other resources I didn't delete running. Glad you're interested in the feature. |
As of v0.21.0, Tilt will clean up unreferenced K8s resources on Tiltfile update. Please note that this only applies to resources Tilt previously deployed for the given |
I might be missing something from the documentation, but couldn't find any related entries or github issues.
My current workflow is basically I am writing all my infrastructure as code with Pulumi with the option to output the build as yaml files during local development. Tilt is reading some of those yaml files using
k8s_yaml
. Whenever I delete a k8s resource within Pulumi and rebuild, the yaml file will be removed. I expect Tilt to handle this event and delete the corresponding resource from my cluster.Currently I have to delete those resources manually using
kubectl
and this is not ideal.The text was updated successfully, but these errors were encountered: