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

NamespaceLifecycle admission control plugin #5288

Merged
merged 1 commit into from
Mar 20, 2015

Conversation

derekwaynecarr
Copy link
Member

If a Namespace is undergoing graceful termination, prohibit any CREATE actions in that namespace. This admission control plug-in will be enabled once we have a NamespaceController that is actually doing the graceful termination.

See #5195 for design details.

return c.Namespaces().List(labels.Everything())
},
WatchFunc: func(resourceVersion string) (watch.Interface, error) {
return c.Namespaces().Watch(labels.Everything(), labels.Everything(), resourceVersion)
Copy link
Member

Choose a reason for hiding this comment

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

I believe we have a fields.Everything() now.

Copy link
Member

Choose a reason for hiding this comment

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

Ooops. Ping.

Copy link
Member Author

Choose a reason for hiding this comment

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

Will update this. My other PR that actually does the delete has the changes to move to fields.Everything()

@bgrant0607 bgrant0607 assigned erictune and unassigned bgrant0607 Mar 17, 2015
@bgrant0607
Copy link
Member

Assigning to @erictune, who I believe is more familiar with admission control plugins.

@bgrant0607 bgrant0607 assigned bgrant0607 and unassigned erictune Mar 20, 2015
@bgrant0607 bgrant0607 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 20, 2015
@bgrant0607
Copy link
Member

LGTM

@googlebot
Copy link

Thanks for your pull request.

It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA) at https://cla.developers.google.com/.

If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check the information on your CLA or see this help article on setting the email on your git commits.

Once you've done that, please reply here to let us know. If you signed the CLA as a corporation, please let us know the company's name.

@derekwaynecarr
Copy link
Member Author

@bgrant0607 - made the update to move to fields.Everything() so this should be good if we get green travis

bgrant0607 added a commit that referenced this pull request Mar 20, 2015
NamespaceLifecycle admission control plugin
@bgrant0607 bgrant0607 merged commit 198d641 into kubernetes:master Mar 20, 2015
@derekwaynecarr derekwaynecarr deleted the namespace_lifecycle branch April 17, 2015 17:56
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants