Skip to content

go: fix declaring multiple gateways#2

Open
fredr wants to merge 1 commit into
v2from
fredr/define-multi-gateway
Open

go: fix declaring multiple gateways#2
fredr wants to merge 1 commit into
v2from
fredr/define-multi-gateway

Conversation

@fredr
Copy link
Copy Markdown
Member

@fredr fredr commented Apr 29, 2026

No description provided.

@fredr fredr requested a review from eandre April 29, 2026 12:35
@fredr fredr self-assigned this Apr 29, 2026
Comment thread v2/app/v2meta/v2meta.go

// Ensure a default gateway exists.
if len(b.res.Gateways) == 0 {
b.res.Gateways["api-gateway"] = &metav2.Gateway{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be emitted in the metadata?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we should, but we insert it in two different places, so I just removed this one.

We add it in discoverGateways here:

return []*Gateway{{EncoreName: "api-gateway"}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants