Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix paging in GetAdminAPIsForService #3846

Merged
merged 2 commits into from
Apr 4, 2023

Conversation

pmalek
Copy link
Member

@pmalek pmalek commented Apr 4, 2023

What this PR does / why we need it:

As noticed by @seh in https://github.com/Kong/kubernetes-ingress-controller/pull/3509/files#r1149782341 the paging in GetAdminAPIsForService() wasn't implemented 100% correct. The continue, paging token wasn't set in the loop, causing the function to only return the head of the list.

Which issue this PR fixes:

Fixes: #3815

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

@pmalek pmalek added this to the KIC v2.10.0 milestone Apr 4, 2023
@pmalek pmalek self-assigned this Apr 4, 2023
@pmalek pmalek requested a review from a team as a code owner April 4, 2023 11:36
@pmalek pmalek force-pushed the fix-paging-in-GetAdminAPIsForService branch from c74dfdf to a2c08a4 Compare April 4, 2023 11:39
Co-authored-by: Grzegorz Burzyński <czeslavo@gmail.com>
@pmalek pmalek requested a review from czeslavo April 4, 2023 11:43
@pmalek pmalek enabled auto-merge (squash) April 4, 2023 11:53
@pmalek pmalek disabled auto-merge April 4, 2023 11:53
@pmalek pmalek enabled auto-merge (squash) April 4, 2023 11:53
@pmalek pmalek merged commit 34320f7 into main Apr 4, 2023
@pmalek pmalek deleted the fix-paging-in-GetAdminAPIsForService branch April 4, 2023 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ingress controller reads only head of list of EndpointSlices
2 participants