tilt icon indicating copy to clipboard operation
tilt copied to clipboard

make an explanation for "uncategorized" easy to find

Open landism opened this issue 3 years ago • 1 comments

Describe the Feature You Want

This is only one possible solution, but: a tooltip next to the "uncategorized" resource linking to a doc explaining what it is and how to get rid of it.

Current Behavior

Users are regularly confused by what "uncategorized" is.

landism avatar Jan 28 '22 16:01 landism

When trying to understand this exact issue, this was one of the first links to pop up. @landism alludes to a way 'to get rid of it', but doesn't go into details.

If anyone else ends up here asking the same thing, I found a related thread here: https://github.com/tilt-dev/tilt/issues/2989#issuecomment-640668032

tl;dr: When you look at the logs in the 'uncategorized' section, it gives a list of kubernetes resources that have not been categorized.

You can then reference the names of those resources, give them a 'new name' that categorizes them, and you can even apply labels to get groupings in the tilt UI.

Adding the following to my tiltfile takes 3 uncategorized kubernetes secrets, categorizes them as the entry 'loki-secrets', then adds them to the 'grafana' group in my setup:

k8s_resource( objects=[ 'loki-stack-grafana:secret', 'loki-stack:secret', 'loki-stack-promtail:secret'], new_name='loki-secrets', labels=["grafana"] )

edit: the official docs for this also have more info here: https://docs.tilt.dev/api.html#api.k8s_resource

KyleGalvin avatar Feb 16 '24 05:02 KyleGalvin