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

Use enable-admission-plugins flag for >=1.10 #8198

Merged
merged 2 commits into from
May 1, 2018
Merged

Use enable-admission-plugins flag for >=1.10 #8198

merged 2 commits into from
May 1, 2018

Conversation

billpratt
Copy link
Contributor

Use enable-admission-plugins flag for >=1.10 and add note that --admission-control is deprecated.

See here for more details: kubernetes/kubernetes#58123

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 26, 2018
@k8sio-netlify-preview-bot
Copy link
Collaborator

k8sio-netlify-preview-bot commented Apr 26, 2018

Deploy preview for kubernetes-io-master-staging ready!

Built with commit 6b9c67d

https://deploy-preview-8198--kubernetes-io-master-staging.netlify.com

@billpratt
Copy link
Contributor Author

/assign @Bradamant3

@xmik
Copy link

xmik commented Apr 27, 2018

Copy link
Contributor

@Bradamant3 Bradamant3 left a comment

Choose a reason for hiding this comment

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

Could use some clarification about best practices for which version ranges. See inline comment, and lmk if you have questions.

--enable-admission-plugins=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota
```

For Kubernetes >= 1.9.0, we strongly recommend running the following set of admission controllers (order matters).
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a little confusing since "For Kubernetes >= 1.9.0 ..." includes 1.10, but you've just added a recommendation right before this "For Kubernetes >= 1.10.0 ..."

Recommend rephrasing something like the following. Note that this recommendation also uses standard language for referring to version ranges (we aren't consistent, but trying to get there when opportunity arises):

"For Kubernetes version 1.10.0 and later, we recommend running ... " (Replacing the parenthetical comment with a complete sentence would be a nice improvement, too.)

and then

"For Kubernetes version 1.9.0 and earlier ..." (but check -- should this be instead "For Kubernetes version 1.9.X and earlier ..." ?)

(While you're at it, we can get rid of "strongly" too -- adds no value.)

UNLESS it's the case that we think it's equally fine to run 1.10.0 and later without --enable-admission-plugins. But that's not my impression from related docs ...

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 1, 2018
@billpratt
Copy link
Contributor Author

@Bradamant3 Good feedback. How's this? cbe4403

@billpratt
Copy link
Contributor Author

@Bradamant3
Copy link
Contributor

@billpratt @xmik it'll take a bit of digging to find exactly where in the code the generated docs pull from, unless one of you happens to know already and can let me know. (I know where the scripts to generate are, but finding the appropriate code bits is a forensics exercise for someone who doesn't work on the feature ;) ). It will probably also take some further conversation to get the code comments updated; my guess is that we won't get the generated docs republished until 1.11 releases, but we can try for sooner.

In the meantime, I'm going to approve this PR bc it seems important, and skip tech review bc I helped doc this feature elsewhere for 1.10. I'll file an issue to track down the missing flag in the generated docs separately.

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 1, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Bradamant3

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 1, 2018
@k8s-ci-robot k8s-ci-robot merged commit 3da5b0b into kubernetes:master May 1, 2018
k8s-ci-robot pushed a commit that referenced this pull request May 15, 2018
#8198 was overwritten with #8316. Adding it back in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. 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.

5 participants