Skip to content

gateway api: fix for multiple listeners on a gateway check#43802

Merged
youngnick merged 2 commits intocilium:mainfrom
xtineskim:allowed-routes-gwapi-42013
Jan 22, 2026
Merged

gateway api: fix for multiple listeners on a gateway check#43802
youngnick merged 2 commits intocilium:mainfrom
xtineskim:allowed-routes-gwapi-42013

Conversation

@xtineskim
Copy link
Copy Markdown
Member

@xtineskim xtineskim commented Jan 15, 2026

Before there was a bug in which depending on the ordering of the listeners in a gateway, either all the listeners will have attached routes, or none at all.

Adding a function in helpers.go that checks if a single listener and route is valid. Updating the necessary function calls in gateway_reconcile.go, and correcting it's respective test case.

Fixes: #42013 and #43630

@xtineskim xtineskim requested a review from a team as a code owner January 15, 2026 22:43
@xtineskim xtineskim requested a review from youngnick January 15, 2026 22:43
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jan 15, 2026
@xtineskim xtineskim force-pushed the allowed-routes-gwapi-42013 branch from 8a775ce to 2f1a10a Compare January 15, 2026 22:44
@xtineskim xtineskim changed the title Allowed routes gwapi 42013 gateway api: fix for multiple listeners on a gateway check Jan 15, 2026
Copy link
Copy Markdown
Contributor

@youngnick youngnick left a comment

Choose a reason for hiding this comment

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

Nice work!

@youngnick youngnick added release-note/bug This PR fixes an issue in a previous release of Cilium. and removed dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Jan 16, 2026
@youngnick
Copy link
Copy Markdown
Contributor

/test

@youngnick youngnick enabled auto-merge January 16, 2026 04:31
@mhofstetter
Copy link
Copy Markdown
Member

mhofstetter commented Jan 16, 2026

nice work @xtineskim

should this be backported to v1.19? if yes then we should add the label needs-backport/v1.19

btw: it seems that ci-integration fails with errors related to these changes

auto-merge was automatically disabled January 16, 2026 14:43

Head branch was pushed to by a user without write access

@xtineskim xtineskim force-pushed the allowed-routes-gwapi-42013 branch 2 times, most recently from ce0a4db to a52928d Compare January 16, 2026 14:43
@xtineskim
Copy link
Copy Markdown
Member Author

thanks @mhofstetter for the feedback! and yes adding the label now~ 🤝

@xtineskim
Copy link
Copy Markdown
Member Author

/test

@xtineskim xtineskim added the needs-backport/1.19 This PR / issue needs backporting to the v1.19 branch label Jan 16, 2026
@xtineskim xtineskim force-pushed the allowed-routes-gwapi-42013 branch 4 times, most recently from aa7279e to 4b3d83a Compare January 16, 2026 17:57
@xtineskim
Copy link
Copy Markdown
Member Author

/test

@xtineskim xtineskim force-pushed the allowed-routes-gwapi-42013 branch 4 times, most recently from 9778787 to 183a7d1 Compare January 20, 2026 14:10
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jan 20, 2026
@xtineskim
Copy link
Copy Markdown
Member Author

/test

@xtineskim xtineskim force-pushed the allowed-routes-gwapi-42013 branch from 183a7d1 to 47010c8 Compare January 20, 2026 18:46
@julianwiedmann julianwiedmann added feature/k8s-gateway-api and removed ready-to-merge This PR has passed all tests and received consensus from code owners to merge. labels Jan 21, 2026
@xtineskim xtineskim force-pushed the allowed-routes-gwapi-42013 branch 2 times, most recently from ede68d4 to 4731046 Compare January 21, 2026 14:16
@xtineskim
Copy link
Copy Markdown
Member Author

/test

@xtineskim xtineskim force-pushed the allowed-routes-gwapi-42013 branch from 4731046 to fdb9d6b Compare January 21, 2026 16:23
@xtineskim
Copy link
Copy Markdown
Member Author

/test

Signed-off-by: xtine <xtineskim@gmail.com>
Signed-off-by: xtine <xtineskim@gmail.com>
@xtineskim xtineskim force-pushed the allowed-routes-gwapi-42013 branch from fdb9d6b to 22bfe39 Compare January 21, 2026 19:20
@xtineskim
Copy link
Copy Markdown
Member Author

/test

@youngnick youngnick enabled auto-merge January 21, 2026 23:19
@youngnick youngnick added this pull request to the merge queue Jan 21, 2026
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jan 21, 2026
Merged via the queue into cilium:main with commit b197d98 Jan 22, 2026
75 of 76 checks passed
@giorio94 giorio94 mentioned this pull request Jan 22, 2026
6 tasks
@giorio94 giorio94 added backport-pending/1.19 The backport for Cilium 1.19.x for this PR is in progress. and removed needs-backport/1.19 This PR / issue needs backporting to the v1.19 branch labels Jan 22, 2026
@github-actions github-actions bot added backport-done/1.19 The backport for Cilium 1.19.x for this PR is done. and removed backport-pending/1.19 The backport for Cilium 1.19.x for this PR is in progress. labels Jan 22, 2026
@cilium-release-bot cilium-release-bot bot moved this to Released in cilium v1.19.0 Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-done/1.19 The backport for Cilium 1.19.x for this PR is done. feature/k8s-gateway-api ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/bug This PR fixes an issue in a previous release of Cilium.

Projects

No open projects
Status: Released

Development

Successfully merging this pull request may close these issues.

Using allowedRoutes with both http and tls is rejected

6 participants