tilt
tilt copied to clipboard
enable / disable considers resource dependencies
Describe the Feature You Want
Andy Martin on k8s slack says that their team has multiple resources that depend on other resources, so the enable/disable resource button in the UI may be misleading.
we have some services that require more to initialize than what can currently be done via the UI, so we'd like to avoid giving users the impression that these services can be enabled from the UI alone for now
If enabling and disabling resources took resource_deps into consideration, that would solve the main issue.
Andy added:
I think there's an additional complicating factor because
resource_depsonly goes in one direction (adepends onbbut not vice versa) but it may not make sense to ever runbon its own
Current Behavior
If resource a depends on resource b:
- enabling
awill not also enableb. It will only enablea. - disabling
bwill not also disablea. It will only disableb.
Technically, you can make your own UIButtons that use the tilt enable and disable commands to enable/disable the appropriate resource dependencies. So (with the above example) you could tilt disable b && tilt disable a, but the UI doesn't display UIButtons on a disabled resource, so that workaround is moot when you need to (re)enable resources.
Could there be a optional flag that allows enable/disable to cascade to dependencies? The tilt args command isn't a great alternative since it removes everything else that is running.
This is an important feature for us as well.
When I enable a resource, I would expect for all of it's dependencies to come up as well.