mirror of https://github.com/grpc/grpc-node.git
Fix name generation and include type_url in CSDS
This commit is contained in:
parent
61a518c30a
commit
608f087231
|
@ -62,10 +62,11 @@ function getCurrentConfigList(): ClientConfig[] {
|
|||
for (const [authority, authorityState] of client.authorityStateMap) {
|
||||
for (const [type, typeMap] of authorityState.resourceMap) {
|
||||
for (const [key, resourceState] of typeMap) {
|
||||
const typeUrl = type.getFullTypeUrl();
|
||||
const typeUrl = type.getTypeUrl();
|
||||
const meta = resourceState.meta;
|
||||
genericConfigList.push({
|
||||
name: xdsResourceNameToString({authority, key}, typeUrl),
|
||||
type_url: typeUrl,
|
||||
client_status: meta.clientStatus,
|
||||
version_info: meta.version,
|
||||
xds_config: meta.clientStatus === 'ACKED' ? meta.rawResource : undefined,
|
||||
|
|
Loading…
Reference in New Issue