diff --git a/libs/backend-apisix/e2e/sync-and-dump-1.e2e-spec.ts b/libs/backend-apisix/e2e/sync-and-dump-1.e2e-spec.ts index 8a316d5..c15043f 100644 --- a/libs/backend-apisix/e2e/sync-and-dump-1.e2e-spec.ts +++ b/libs/backend-apisix/e2e/sync-and-dump-1.e2e-spec.ts @@ -43,6 +43,7 @@ describe('Sync and Dump - 1', () => { const service1 = { name: service1Name, upstream: structuredClone(upstream), + hosts: ['example1.com', 'example2.com'], } as ADCSDK.Service; const service2Name = 'service2'; const service2 = { diff --git a/libs/backend-apisix/src/transformer.ts b/libs/backend-apisix/src/transformer.ts index 1b1b157..9d95b7a 100644 --- a/libs/backend-apisix/src/transformer.ts +++ b/libs/backend-apisix/src/transformer.ts @@ -45,6 +45,8 @@ export class ToADC { description: service.desc, labels: service.labels, + hosts: service.hosts, + upstream: service.upstream, plugins: service.plugins, } as ADCSDK.Service);