-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Admission Controller Fix #5248
Admission Controller Fix #5248
Conversation
I'm guessing the e2e tests didn't pick this up because they aren't specifying any AdmissionControl. Without this the kube-apiserver throws the below and refuses to start. I0602 18:35:54.052373 1 server.go:135] Version: v1.10.3
I0602 18:35:54.052787 1 server.go:724] external host was not specified, using 10.250.31.254
admission-control and enable-admission-plugins/disable-admission-plugins flags are mutually exclusive |
4a674ca
to
93e7fed
Compare
A previous PR kubernetes#5221 introduced the --enable-admission-plugins for >= 1.10.0 as recommended, it does however cause an issue if you already have AdmissionControl is specified in the Spec as both flags get rendered
93e7fed
to
b62d6df
Compare
Just double checked by building out a cluster
|
/assign @justinsb |
Thanks for the fix. /approve We should also validate that users haven't set both (we should make that an error, because we aren't going to honor both). I think it would also make more sense to do this in pkg/model/components/apiserver.go - we can also raise an error if users have set both, which we can't do in nodeup (though this would be a failsafe test; we should primarily do this in validation). Ideally we would also log a warning if users are setting AdmissionControl with k8s >= 1.10 as they should be moving to EnableAdmissionControl. I will try to tackle these if I have time (unless you beat me to it), but this is a good and important fix - thank you! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gambol99, justinsb 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 |
Since v1.10.0 the --admission-control is being deprecated in favour or --enable-admission-plugin, we should enforce the behaviour in the validation code I did a fix for this a [moment ago](kubernetes#5248), but yes, enforcement is a better option than trying to support both
Since v1.10.0 the --admission-control is being deprecated in favour or --enable-admission-plugin, we should enforce the behaviour in the validation code I did a fix for this a [moment ago](kubernetes#5248), but yes, enforcement is a better option than trying to support both
Since v1.10.0 the --admission-control is being deprecated in favour or --enable-admission-plugin, we should enforce the behaviour in the validation code I did a fix for this a [moment ago](kubernetes#5248), but yes, enforcement is a better option than trying to support both
Since v1.10.0 the --admission-control is being deprecated in favour or --enable-admission-plugin, we should enforce the behaviour in the validation code I did a fix for this a [moment ago](kubernetes#5248), but yes, enforcement is a better option than trying to support both
A previous PR #5221 introduced the --enable-admission-plugins for >= 1.10.0 as recommended, it does however cause an issue if you already have AdmissionControl specified in the Spec as both flags get rendered and they are mutually exclusive, causing the kube-apiserver not to start