-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
enable webhook admission controllers #7983
Comments
Also, I did attempt to enable the ValidatingAdmissionWebhook using the osm_api_server_args variable, but this did not appear to work.
This did result in the master-config.yaml file having these bits set
However, the apiserver did not appear to pickup the ValidatingAdmissionWebhook admission controller on startup. I'm testing with openshift v3.0.0-alpha.4 which should have the ability to use admission webhooks. |
Does making them a list work?
|
The task file you're referencing only applies to the service catalog api server, you need this configured in the base API server, right? |
The normal master-config.yaml enablement described here https://docs.openshift.org/3.6/architecture/additional_concepts/admission_controllers.html#admission-controllers-general-admission-rules ought to work. |
@deads2k how is the openshift admission plugin related to enabling the new ValidatingAdmissionWebhook and MutatingAdmissionWebhook webhooks? |
It's the way to configure admission plugins for the openshift master apiserver, which includes the kube-apiserver. |
@deads2k Sorry, I'm not seeing the relationship between the admission plugins and what I'm trying to do. I want to turn on the ValidatingAdmissionWebhook and MutatingAdmissionWebhook admission controllers on for the kube-api server. This are two values that need to be set in the --admission-control argument passed to the kube-api server. https://kubernetes.io/docs/admin/admission-controllers/#is-there-a-recommended-set-of-admission-controllers-to-use Here's the only openshift documentation I can find related to webhooks. It does not indicate how to enable this functionality in the apiserver though. |
admissionConfig:
pluginConfig:
ValidatingAdmissionWebhook:
configuration:
kind: DefaultAdmissionConfig
apiVersion: v1
disable: false
MutatingAdmissionWebhook:
configuration:
kind: DefaultAdmissionConfig
apiVersion: v1
disable: false or something close. |
thanks, this worked. I see that openshift converged it's admission chain with k8s. That's what threw me off. Here's the ansible env var I used for anyone who's wanting to know how to set this up.
|
@davidvossel how you use this ansible env var when your openshift is already running? |
Answering my own question but could be handy for a newbie like me:
admissionConfig:
pluginConfig:
ValidatingAdmissionWebhook:
configuration: {kind: DefaultAdmissionConfig, apiVersion: v1, disable: false}
|
Description
The KubeVirt project needs the ability to have MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controllers enabled in openshift.
Apiserver admission controllers are enabled via the --admission-control argument (see roles/openshift_service_catalog/templates/api_server.j2) This argument takes a list of admission controllers. We need the ability to append the MutatingAdmissionWebhook and ValidatingAdmissionWebhook values to that list.
This is blocking our ability to provide webhook validation of our VirtualMachine CRD objects. kubevirt/kubevirt#911
The text was updated successfully, but these errors were encountered: