-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
🐛 Enable labels list options in fake client #410
🐛 Enable labels list options in fake client #410
Conversation
This commit allows passing label matches to the fake client List() function. This is done in a way similar to the CachedReader. Both now share a common call to `objectutil.FilterWithLabels`. Signed-off-by: sebgl <contact.sebgl@gmail.com>
@sebgl @DirectXMan12 PTAL |
To eliminate: pkg/cache/internal/cache_reader.go:91::warning: cyclomatic complexity 12 of function (*CacheReader).List() is high (> 10) (gocyclo) pkg/client/fake/client.go:92::warning: cyclomatic complexity 12 of function (*fakeClient).List() is high (> 10) (gocyclo)
Make possible to call to object List with label selector. We should revert it back to https://github.com/kubernetes-sigs/controller-runtime/tree/release-0.1 once kubernetes-sigs/controller-runtime#410 merged
Make possible to call to object List with label selector. We should revert it back to https://github.com/kubernetes-sigs/controller-runtime/tree/release-0.1 once kubernetes-sigs/controller-runtime#410 merged
added the appropriate prefix to the title /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DirectXMan12, ingvagabund 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:
Approvers can indicate their approval by writing |
drop support for legacy (v0) projects
This commit allows passing label matches to the fake client List()
function.
This is done in a way similar to the CachedReader. Both now share a
common call to
objectutil.FilterWithLabels
.Signed-off-by: sebgl contact.sebgl@gmail.com
Backporting #311 into release-0.1 branch.