tilt icon indicating copy to clipboard operation
tilt copied to clipboard

Ability to group resources from `k8s_yaml`

Open designermonkey opened this issue 1 month ago • 3 comments

Describe the Feature You Want

I understand that this is primarily for developing resources locally, but it would be great to be able to properly group resources by namespace. so that in the UI we can see all the resources (like Ingress, Service etc) alongside the Pod, Deployment etc. This would make it so easy to re-apply an entire namespace.

Current Behavior

I don't feel the automatic naming thing is working well, as it names things like resource-name:type rather than using the actual namespace of the resource.

Why Do You Want This?

For example, cert-manager is applied as multiplt separate resources, which are all separate running containers, but any other k8s config like Services are all lumped under uncategorized which makes it hard to restart all of cert-manager on it's own.

designermonkey avatar Nov 10 '25 12:11 designermonkey

Here's a doc on how to group resources: https://docs.tilt.dev/tiltfile_concepts.html#configuring-kubernetes-resources

nicks avatar Nov 10 '25 23:11 nicks

While I appreciate the link to a document I already read, my question is a little more nuanced than that.

As you can see I wrote that the naming convention isn't helpful in that it doesn't use the namespace first, meaning I have to know all the names of all resources in advance to be able to group them. So using cert-manager as an example, I want to be able to easily group all the differently named resources in the UI. I simply can't do that at present.

designermonkey avatar Nov 11 '25 14:11 designermonkey

ha, it's not personal! like 50% of the life of an OSS maintainer is DMs where they just need a link to docs.

i'm not totally sure what solution you're asking for though.

For the specific example you gave, cert-manager, we usually encourage people to use Helm - https://docs.tilt.dev/helm.html#installing-existing-charts. The helm package behavior is usually more what people want for a discrete set of resources like cert-manager.

nicks avatar Nov 12 '25 14:11 nicks