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

API Conventions for Late-initializers #7366

Merged
merged 1 commit into from
Apr 28, 2015

Conversation

erictune
Copy link
Member

Formalizing what @bgrant0607 and I discussed in the context of the SecurityContext changes.

Late-initializers should only make the following types of modifications:
- Setting previously unset fields
- Adding keys to maps
- Adding values to arrays which have mergeable semantics (mergePatch attribute in go definition of type).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: newline?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

patchStrategy:"merge"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both fixed.

@bgrant0607
Copy link
Member

LGTM. Thanks much.

bgrant0607 added a commit that referenced this pull request Apr 28, 2015
API Conventions for Late-initializers
@bgrant0607 bgrant0607 merged commit f8569dc into kubernetes:master Apr 28, 2015
@derekwaynecarr
Copy link
Member

This is helpful to lay out. Agree with the admission control comments for those handlers that modify incoming objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants