Get CustomResourceDefinition from CompositeResourceDefinition #89
Labels
enhancement
New feature or request
needs-epic-link
Needs a link to an epic
needs-points-label
Needs a story points label
needs-project
Needs to be added to a project board
What problem are you facing?
The only way to get a CustomResourceDefinition is either to get it from the list of all resource definitions (
customResourceDefinitions.nodes
) or directly byid
fromkubernetesResource(id: $id)
. The list of all CRDs can be quite long and if the user is just wanted the CRDs the correspond to theCompositeResourceDefinition
s fetching the whole is and expensive way to get them. TheCompositeResourceDefinition
does offer theapiVersion
andkind
of composite and claim CRDs viastatus.controllers.compositeResourceType
andstatus.controllers.compositeResourceClaimType
respectively but there is no way to fetch aCRD
from that info.How could Upbound help solve your problem?
If a
CompositeResourceDefinition
offered fields that returned the CRD for the claim and the composite resource this would be a much smaller list and a more performant way of getting these details. Also, it would be nice to be able to fetch a CRD fromkind
andapiVersion
but this is not strictly needed currently.The text was updated successfully, but these errors were encountered: