-
Notifications
You must be signed in to change notification settings - Fork 40k
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
api storage: Decouple Decorator from Filter #31189
Conversation
@smarterclayton |
return nil, err | ||
} | ||
if e.Decorator != nil { | ||
if err := e.Decorator(out); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes the behavior of the decorator - probably ok, but something that we need to call out on the decorator Godoc (gets passed either an individual object or the list type returned by the store).
@smarterclayton |
@smarterclayton |
Lgtm please squash. @miminar we'll have to update InageStrean decorators on the next rebase |
- Error from Decorator will be returned instead of assuming false filtering - For List, Decorator is called on return list object - For Watch, we implement a new watcher to pipe through decorator
@smarterclayton |
@smarterclayton |
@xiang90 @smarterclayton Does this belong in the 1.4 milestone? Is it a feature or bug fix? |
I assume it does. do not want to block other people's rebase. see: #31189 (comment) Otherwise, you can remove it from the 1.4 milestone. |
Sorry I still don't totally understand. For context, I am the 1.4 release czar and working to stabilize the release. What depends on rebasing on top of this? Does this introduce new functionality? I added the do-not-merge label until I better understand. Will remove if this still makes sense for 1.4 |
@pwittrock @smarterclayton knows better for that issue. One quick question: we stop merging in stuff for 1.4 unrelated things for now? |
@xiang90 That is correct. We are in feature freeze mode, and our intention is to only merge changes for bug fixes, tests, and docs. If you feel that you have a compelling reason to request for a 1 time exemption, there is a process for that, but something we are discouraging unless it is critical. |
@pwittrock Thank you. |
@smarterclayton If you have no objection, I plan to move this out of the v1.4 release |
It is not critical for 1.4 because it does not block other 1.4 items.
No objection
|
@smarterclayton Thanks |
@k8s-bot test this issue: #IGNORE |
GCE e2e build/test passed for commit f01bc0a. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit f01bc0a. |
Automatic merge from submit-queue |
Automatic merge from submit-queue Pass SelectionPredicate instead of Filter to storage layer Depends on #31189 (first commit). ref: #29888 What? This PR removes the filtering logic and passes SelectionPredicate to storage layer. Why? Filter doesn't provide enough information of and isn't the right abstraction for indexing. We need to pass in SelectionPredicate instead.
#31704-#32831-#32907-#33003-#33349-#31190-#33581-#34089-#34234-#32822-#33393-#34246-#34435-#32477-upstream-release-1.4 Automatic merge from submit-queue Automated cherry pick of #31189 #31704 #32831 #32907 #33003 #33349 #31190 #33581 #34089 #34234 #32822 #33393 #34246 #34435 #32477 upstream release 1.4 We are going to release etcd v3 in 1.4.x release. ``` Cherrypick etcd v3-related bug fixes to 1.4 branch ``` Those PRs include: - Updates of etcd Godeps - Update to pkg/storage/etcd directory - Two PR that were unnecessary to avoid conflicts: #31189 #31704 Automated cherry pick of #31189 #31704 #32831 #32907 #33003 #33349 #31190 #33581 #34089 #34234 #32822 #33393 #34246 #34435 #32477 @hongchaodeng @xiang90 @lavalamp @smarterclayton
…ck-of-#31189-kubernetes#31704-kubernetes#32831-kubernetes#32907-kubernetes#33003-kubernetes#33349-kubernetes#31190-kubernetes#33581-kubernetes#34089-kubernetes#34234-kubernetes#32822-kubernetes#33393-kubernetes#34246-kubernetes#34435-kubernetes#32477-upstream-release-1.4 Automatic merge from submit-queue Automated cherry pick of kubernetes#31189 kubernetes#31704 kubernetes#32831 kubernetes#32907 kubernetes#33003 kubernetes#33349 kubernetes#31190 kubernetes#33581 kubernetes#34089 kubernetes#34234 kubernetes#32822 kubernetes#33393 kubernetes#34246 kubernetes#34435 kubernetes#32477 upstream release 1.4 We are going to release etcd v3 in 1.4.x release. ``` Cherrypick etcd v3-related bug fixes to 1.4 branch ``` Those PRs include: - Updates of etcd Godeps - Update to pkg/storage/etcd directory - Two PR that were unnecessary to avoid conflicts: kubernetes#31189 kubernetes#31704 Automated cherry pick of kubernetes#31189 kubernetes#31704 kubernetes#32831 kubernetes#32907 kubernetes#33003 kubernetes#33349 kubernetes#31190 kubernetes#33581 kubernetes#34089 kubernetes#34234 kubernetes#32822 kubernetes#33393 kubernetes#34246 kubernetes#34435 kubernetes#32477 @hongchaodeng @xiang90 @lavalamp @smarterclayton
Continue #28249
What?
This PR decouples Decorator from Filter, i.e. remove Decorator in createFilter().
Why?
This change is