tilt
tilt copied to clipboard
Create separate UI resources with k8s_custom_deploy (e.g. helm_resource)
Desired Behavior
I can create individual UI resources from a group of kubernetes objects installed via helm_resource.
Current Behavior
All the resources are grouped under a single UI resource.
When trying to create a new resource with k8s_resource(objects=..., new_object=...), Tilt reports an error when trying to select one of the objects:
No object identified by the fragment "prom-prometheus-alertmanager:deployment:prom" could be found. Possible objects are:
The list of "possible objects" is empty.
Example
See https://github.com/markdingram/tilt-prom
This is currently expected behavior.
There's an order of operations problem:
- Tilt doesn't know until after the install what resources are going to be deployed
- Tiltfile execution is single-threaded and synchronous, and cannot block on deploy
- Resource creation happens at the end of tiltfile execution
There's more on this in https://blog.tilt.dev/2021/12/03/k8s-custom-deploy.html
This seems worth keeping open as a feature request, but we would need a proposal that wasn't too costly in terms of performance cost and complexity
Being able to click between the different pod log streams in the UI would achieve a lot of what was requested here - I saw https://github.com/tilt-dev/tilt/issues/4590