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

feat: Allow configuration of informer pagination through list limit (… #1977

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

Bijnagte
Copy link
Contributor

#1976).

* The maximum amount of items to return for a single list call when starting an informer. If this
* is a not null it will result in paginating for the initial load of the informer cache.
*/
default Long getInformerLimit() {
Copy link
Collaborator

@csviri csviri Jul 25, 2023

Choose a reason for hiding this comment

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

Thinking if we could not find a more specific name. Like getInformerListLimit ? What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated with your naming selection and added a link to the underlying method that ends up getting since the javadoc there has more info.

* The maximum amount of items to return for a single list call when starting an informer. If this
* is a not null it will result in paginating for the initial load of the informer cache.
*/
default Long getInformerLimit() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we make this Optional? Also take it into account if not set?

@Bijnagte Bijnagte requested a review from csviri July 25, 2023 13:07
Copy link
Collaborator

@csviri csviri left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you @Bijnagte

@csviri csviri merged commit b1e5066 into operator-framework:main Jul 25, 2023
@csviri csviri linked an issue Jul 26, 2023 that may be closed by this pull request
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.

Support pagination on Informer list operation
2 participants