Skip to content

Add WrapUpdatedObjectInfo helper#26240

Merged
k8s-github-robot merged 1 commit intokubernetes:masterfrom
liggitt:wrap-updated-object
Jun 25, 2016
Merged

Add WrapUpdatedObjectInfo helper#26240
k8s-github-robot merged 1 commit intokubernetes:masterfrom
liggitt:wrap-updated-object

Conversation

@liggitt
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

Awesome, this works great

@caesarxuchao
Copy link
Copy Markdown
Contributor

An example use case: #25634 (comment)

@caesarxuchao
Copy link
Copy Markdown
Contributor

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
Copy Markdown

k8s-bot commented Jun 21, 2016

GCE e2e build/test passed for commit 10c1234.

@k8s-bot
Copy link
Copy Markdown

k8s-bot commented Jun 25, 2016

GCE e2e build/test passed for commit 10c1234.

@k8s-bot
Copy link
Copy Markdown

k8s-bot commented Jun 25, 2016

GCE e2e build/test passed for commit 10c1234.

@k8s-github-robot
Copy link
Copy Markdown

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