Skip to content

Commit

Permalink
fix(apisix): service missing hosts (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
bzp2010 authored Dec 27, 2024
1 parent fed76ee commit ca26bac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions libs/backend-apisix/e2e/sync-and-dump-1.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 2 additions & 0 deletions libs/backend-apisix/src/transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ca26bac

Please sign in to comment.