Skip to content

🐛 Return error if pagination is used with the cached client #3134

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

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

sbueringer
Copy link
Member

@sbueringer sbueringer commented Feb 25, 2025

Signed-off-by: Stefan Büringer buringerst@vmware.com

Implements option 2 mentioned in #3045

This should make it a lot easier to detect usages of pagination with the cached client (which is not supported)

Signed-off-by: Stefan Büringer buringerst@vmware.com
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 25, 2025
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 25, 2025
@sbueringer
Copy link
Member Author

/assign @alvaroaleman @vincepri

@sbueringer
Copy link
Member Author

sbueringer commented Feb 25, 2025

I can mark the PR as breaking if we want. But if folks were using the usual pattern for pagination before they probably had an endless loop? :) So not sure if we're actually breaking anything here

@sbueringer sbueringer changed the title 🐛 Return error if pagination is used with cached client 🐛 Return error if pagination is used with the cached client Feb 25, 2025
@sbueringer
Copy link
Member Author

/cc @akutz

@k8s-ci-robot k8s-ci-robot requested a review from akutz February 25, 2025 18:25
Copy link
Member

@alvaroaleman alvaroaleman left a comment

Choose a reason for hiding this comment

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

thanks!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 26, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 41d39d3267ffeb483055afe50d90952a551faac7

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alvaroaleman, sbueringer

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [alvaroaleman,sbueringer]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 9d8d219 into kubernetes-sigs:main Feb 26, 2025
19 checks passed
@sbueringer sbueringer deleted the pr-block-pagination branch February 26, 2025 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants