Follow-up APIBindings: have more speaking names of CRDs in shadow namespace
Follow-up of https://github.com/kcp-dev/kcp/issues/417.
Problem: the names of CRDs in the system:bound-crds workspace have cryptic names. For debugging it would be very helpful to have the resource and group name plus the uid there.
Also see https://github.com/kcp-dev/kcp/pull/702#discussion_r830045834 for details.
cc @ncdc
What about having that data in labels or annotations? Or you think a more meaningful name is needed?
I think name is better as it shows up in controller logs for example. This is not about technically being able to find the objects, but rather as a human to understand what these 300 CRDs mean there.
Makes sense. Will resource+group+uid fit within the maximum name length limit?
Good question. Probably 63 chars for names. And that can be exhausted for a resource name alone I guess. But something like resource.group-<8-alpha-numeric-chars> is probably good enough. We can have a deterministic shortening of resource.group in case it's getting too long.