Fix name generation and include type_url in CSDS

This commit is contained in:
Michael Lumish 2023-06-15 11:07:03 -07:00
parent 61a518c30a
commit 608f087231
1 changed files with 2 additions and 1 deletions

View File

@ -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,