tilt icon indicating copy to clipboard operation
tilt copied to clipboard

Create separate UI resources with k8s_custom_deploy (e.g. helm_resource)

Open nicksieger opened this issue 3 years ago • 2 comments

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

nicksieger avatar Jan 25 '22 15:01 nicksieger

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

nicks avatar Jan 25 '22 16:01 nicks

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

markdingram avatar Feb 21 '22 18:02 markdingram