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

Add WrapUpdatedObjectInfo helper #26240

Merged
merged 1 commit into from
Jun 25, 2016

Conversation

liggitt
Copy link
Member

@liggitt liggitt commented May 25, 2016

This makes it easier to attach checks/transformations to the updated object in storage Update functions, while still keeping the data flow intact (so admission, patch, and other injected checks continue to work as intended), without needing to do anything tricky to get the updated object out of the UpdatedObjectInfo introduced in #25787

This is especially useful when one storage is delegating to another, but wants its checks to be run in the heart of the eventual GuaranteedUpdate call.

@k8s-github-robot k8s-github-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. release-note-label-needed labels May 25, 2016
@liggitt
Copy link
Member Author

liggitt commented May 25, 2016

@caesarxuchao, since you looked through #25787

cc @ericchiang, in case you want to make use of this for the RBAC PR

@liggitt liggitt added release-note-none Denotes a PR that doesn't merit a release note. and removed release-note-label-needed labels May 25, 2016
@liggitt liggitt assigned caesarxuchao and unassigned thockin May 25, 2016
@ericchiang
Copy link
Contributor

Awesome, this works great

@caesarxuchao
Copy link
Member

An example use case: #25634 (comment)

@caesarxuchao
Copy link
Member

LGTM. Thanks.

@caesarxuchao caesarxuchao added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 25, 2016
@k8s-bot
Copy link

k8s-bot commented Jun 21, 2016

GCE e2e build/test passed for commit 10c1234.

@k8s-bot
Copy link

k8s-bot commented Jun 25, 2016

GCE e2e build/test passed for commit 10c1234.

@k8s-bot
Copy link

k8s-bot commented Jun 25, 2016

GCE e2e build/test passed for commit 10c1234.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit db62715 into kubernetes:master Jun 25, 2016
@liggitt liggitt deleted the wrap-updated-object branch June 27, 2016 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. 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.

7 participants