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

kubeadm: remove Initializers (still in alpha) from admission control #58428

Merged

Conversation

dixudx
Copy link
Member

@dixudx dixudx commented Jan 18, 2018

What this PR does / why we need it:
Currently Initializers is still in alpha version, which should not be enabled by default, until promoted to beta.

For kubeadm users, who still want to use Initializers, they can use apiServerExtraArgs through kubeadm config file to enable it when booting up the cluster.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes kubernetes/kubeadm#629

Special notes for your reviewer:
/assign @luxas
/area kubeadm
/cc @kubernetes/sig-cluster-lifecycle-pr-reviews
/cc @liggitt @jamiehannaford @timothysc

Release note:

Remove alpha Initializers from kubadm admission control

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. area/kubeadm sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. labels Jan 18, 2018
@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 Jan 18, 2018
@liggitt
Copy link
Member

liggitt commented Jan 18, 2018

/lgtm

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

@luxas luxas left a comment

Choose a reason for hiding this comment

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

/approve

Do we know when Initializers are expected to hit beta @liggitt?
IIRC, this was added to the list long ago, with the argument that the user would still need to enable the API group manually in order for this to be functional. To me it makes sense to require the user to opt in in both places here

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dixudx, liggitt, luxas

Associated issue: #629

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

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your 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 Jan 18, 2018
@k8s-github-robot
Copy link

/test all [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here.

@k8s-github-robot k8s-github-robot merged commit ace0e7a into kubernetes:master Jan 18, 2018
@dixudx dixudx deleted the kubeadm_remove_initializers branch January 18, 2018 07:52
@errordeveloper
Copy link
Member

Do I now have to maintain a list of admission controllers, or just enabling the API group is still enough? I would recommend having a specific flag for this, a feature gate, I suppose. It sounds like a terrible UX for someone to try a feature that had been blogged about a lot.

@dixudx
Copy link
Member Author

dixudx commented Jan 18, 2018

@errordeveloper For kubeadm users, who still want to use Initializers, they can use apiServerExtraArgs through kubeadm config file to enable it when booting up the cluster.

When using this alpha Initializers, you still have to add it into admission controllers list and pass admissionregistration.k8s.io/v1alpha1 to runtime-config as well.

These two args can be configured in apiServerExtraArgs.

@errordeveloper
Copy link
Member

errordeveloper commented Jan 18, 2018 via email

@luxas
Copy link
Member

luxas commented Jan 18, 2018

Let's start with documenting what's needed, but I'm open to adding a feature gate for Initializers as well if it doesn't hit beta in v1.10

@liggitt
Copy link
Member

liggitt commented Jan 18, 2018

user shouldn't have to care about what initializers they need and in what order.

Agree. There is work in progress to significantly improve this: #58123

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. area/kubeadm 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. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kubeadm enables Initializer admission controller by default
6 participants