Spliting compact services in multiples lines

When we generate metadata for compact services, all of the compact
services where joining in one single blob and we hit the size limit
for it. Splitting compact services each one with per line with the
compact service name and a list of their networks, so we will not hit
this size limit anymore.

Change-Id: I90d7bc73000352ad2c4b3f08f00d2a115f075a5e
Depends-On: Ida39f5768c67f982b2fe316f6fae4988a74c8534
This commit is contained in:
Raildo Mascena 2018-12-06 16:09:07 -05:00 committed by Douglas Mendizábal
parent eb70154796
commit 12468acb11

View File

@ -87,7 +87,7 @@ resources:
properties: properties:
value: value:
yaql: yaql:
expression: dict(coalesce($.data, []).where($ != null and $.type = 'node').select([$.service, $.network.replace('_', '')]).groupBy($[0], $[1])) expression: dict(coalesce($.data, []).where($ != null and $.type = 'node').groupBy(concat('compact_service_', $.service), $.network.replace('_', '')))
data: {get_attr: [IncomingMetadataSettings, value]} data: {get_attr: [IncomingMetadataSettings, value]}
outputs: outputs:
@ -96,5 +96,5 @@ outputs:
value: value:
map_merge: map_merge:
- {get_attr: [IndividualServices, value]} - {get_attr: [IndividualServices, value]}
- compact_services: {get_attr: [CompactServices, value]} - {get_attr: [CompactServices, value]}