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

No list option for Continue or Limit #310

Closed
grantr opened this issue Jan 25, 2019 · 10 comments · Fixed by #341
Closed

No list option for Continue or Limit #310

grantr opened this issue Jan 25, 2019 · 10 comments · Fixed by #341
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@grantr
Copy link
Contributor

grantr commented Jan 25, 2019

The new functional list options from #294 don't support setting Limit or Continue with a functional option. If the user wants to use those options, they need to fall back to UseListOptions. Not a huge deal, but probably not too hard to fix.

@DirectXMan12
Copy link
Contributor

/kind feature
/priority backlog
/good-first-issue

@DirectXMan12 DirectXMan12 added kind/feature Categorizes issue or PR as related to a new feature. priority/backlog Higher priority than priority/awaiting-more-evidence. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. labels Jan 29, 2019
@rajathagasthya
Copy link
Contributor

@DirectXMan12 Can I take this?

@DirectXMan12
Copy link
Contributor

go ahead! Always happy for more contributions :-)

@rajathagasthya
Copy link
Contributor

@DirectXMan12 Thanks! Do you have any pointers on how to get started with this? How are the Limit and Continue options used?

@DirectXMan12
Copy link
Contributor

DirectXMan12 commented Feb 26, 2019

basically, you'd just need to implement additional ListOptionsFunc implementations that set limit and continue on the list options -- the pattern should be fairly straightforward if you look at some of the other list options, but LMK if it's unclear (see, for example https://github.com/kubernetes-sigs/controller-runtime/blob/master/pkg/client/interfaces.go#L304)

Limit and continue themselves are used as part of the paginated list API in Kubernetes (e.g. https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.10/#list)

@rajathagasthya
Copy link
Contributor

@DirectXMan12 Thanks! I actually figured out what to do after reading some code in k/k. I'm writing tests (which are failing so far), but I'll create a WIP PR to make sure I'm doing the right things.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 28, 2019
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jun 27, 2019
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

DirectXMan12 pushed a commit that referenced this issue Jan 31, 2020
add e2e test for v1 kubebuilder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants