Open lobkovilya opened 1 month ago
I like this! Couple of points:
Does this only exist in the _rules
api or it's part of a datastructure that's more internal and that we could use in the XDS config generation?
I'm curious also if we could add in the future internal and external inbounds/outbounds
What happens when one of the field is empty (.e.g: zone)?
Empty fields in ResourceIdentifier are meaningful, i.e. resources from global will have their zone empty, resources from universal will have their namespace empty.
If we put outbounds should we put inbounds too?
Yeah, I don't see why not, it's basically exactly the same format as outbounds, being able to make cross links to inbound's MeshService is useful as well.
Does this only exist in the _rules api or it's part of a datastructure that's more internal and that we could use in the XDS config generation?
We already have a list of outbounds in the Proxy struct, but we don't call dataplane_proxy_builder.go
for _rules
at this moment. Though we do it in other Inspect API endpoints.
I'm curious also if we could add in the future internal and external inbounds/outbounds
by internal you mean like envoy admin or prometheus listeners or what exactly?
I'm guessing that if I have a list/map of outbounds (and in the future inbounds), then I no longer need to parse the envoy stats for the names of things. I can just look up the stats/values I need based on this list instead? Also means I don't need to filter out internal inbounds/outbounds etc etc.
We can obvs make any changes related to that ^ after 2.9
Description
Kuma GUI needs to create cross links to MS, MES, MMZS even when there are no specific rules for them.
We need to include the list of outbounds, like:
and change
toResourceRules[].resourceMeta
toresourceIdentifier
:Matching between item in
outbounds
and item intoResourceRules
should be done by using theresourceIdentifier
.The only place where we have name with hash is
outbounds[].name
and it only should be used for creating cross links (until Kuma API gets endpoints that acceptresourceIdentifier
).