tilt icon indicating copy to clipboard operation
tilt copied to clipboard

Allow setting custom text for local_resource as an alternative to its name

Open lijok opened this issue 6 months ago • 1 comments

Describe the Feature You Want

local_resource would support a text property, that functions the same as cmd_button text property - rendered on the resource as its name, but without the uniqueness constraints

Current Behavior

n/a

Why Do You Want This?

We have a dir structure that we want to express as a combination of local resources and their labels.

Image

This is what we want:

Image

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

lijok avatar Jun 20 '25 10:06 lijok

+1

This should also be what workload_to_resource_function() sets.

Then we don't mess around with / change the resource's real unique id/name used by k8s_resource(), and it remains predictable and consistent with k8s names.

amirabiri avatar Aug 07 '25 20:08 amirabiri