Skip to content

Commit

Permalink
Fix name generation and include type_url in CSDS
Browse files Browse the repository at this point in the history
  • Loading branch information
murgatroid99 committed Jun 15, 2023
1 parent 61a518c commit 608f087
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/grpc-js-xds/src/csds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 608f087

Please sign in to comment.