kubernetes/api/swagger-spec
Kubernetes Submit Queue 5066a67caa
Merge pull request #59840 from jennybuckley/webhooks-on-webhooks
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Prevent webhooks from affecting admission requests for WebhookConfiguration objects

**What this PR does / why we need it**:
As it stands now webhooks can be added to the system which make it impossible for a user to remove that webhook, or two webhooks could be registered which make it impossible to remove each other.

The first commit of this will add a test to make sure webhook deletion is never blocked by a webhook. This test will fail until the second commit is added which will prevent webhooks from affecting admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects in the admissionregistration.k8s.io group

- [x] Test that webhook deletion is never blocked by a webhook ([test fails before second commit](https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/59840/pull-kubernetes-e2e-gce/23731/))
- [x] Prevent webhooks from being called on admission requests for [Validating|Mutating]WebhookConfiguration objects
- [x] Document this new behavior maybe in another PR

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Part of fixing #59124 (Verifies that it can remove the broken webhook.)

**Release note**:
```release-note
ValidatingWebhooks and MutatingWebhooks will not be called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects in the admissionregistration.k8s.io group
```
2018-03-05 19:09:33 -08:00
..
admissionregistration.k8s.io_v1alpha1.json Clarify that ListOptions.Timeout is not conditional on inactivity 2018-02-05 17:04:03 -05:00
admissionregistration.k8s.io_v1beta1.json Run hack/update-all.sh 2018-03-05 16:36:11 -08:00
admissionregistration.k8s.io.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
api.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
apis.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
apps_v1.json API Changes for RunAsGroup and Implementation and e2e 2018-02-28 22:09:56 -08:00
apps_v1alpha1.json fixed some bad url 2018-01-10 22:05:00 +08:00
apps_v1beta1.json API Changes for RunAsGroup and Implementation and e2e 2018-02-28 22:09:56 -08:00
apps_v1beta2.json API Changes for RunAsGroup and Implementation and e2e 2018-02-28 22:09:56 -08:00
apps.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
authentication.k8s.io_v1.json Update deletionTimestamp with information about finalizer effect 2017-11-03 10:48:48 +08:00
authentication.k8s.io_v1beta1.json Update deletionTimestamp with information about finalizer effect 2017-11-03 10:48:48 +08:00
authentication.k8s.io.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
authorization.k8s.io_v1.json autogenerated 2017-11-03 13:46:29 -07:00
authorization.k8s.io_v1beta1.json autogenerated 2017-11-03 13:46:29 -07:00
authorization.k8s.io.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
autoscaling_v1.json Clarify that ListOptions.Timeout is not conditional on inactivity 2018-02-05 17:04:03 -05:00
autoscaling_v2beta1.json Autogenerated code for HPA external metrics 2018-02-22 14:45:06 +01:00
autoscaling.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
batch_v1.json API Changes for RunAsGroup and Implementation and e2e 2018-02-28 22:09:56 -08:00
batch_v1beta1.json API Changes for RunAsGroup and Implementation and e2e 2018-02-28 22:09:56 -08:00
batch_v2alpha1.json API Changes for RunAsGroup and Implementation and e2e 2018-02-28 22:09:56 -08:00
batch.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
BUILD Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
certificates.k8s.io_v1beta1.json Clarify that ListOptions.Timeout is not conditional on inactivity 2018-02-05 17:04:03 -05:00
certificates.k8s.io.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
events.k8s.io_v1beta1.json auto-generated 2018-02-11 11:04:15 +08:00
events.k8s.io.json generated 2017-11-22 18:40:09 +00:00
extensions_v1beta1.json API Changes for RunAsGroup and Implementation and e2e 2018-02-28 22:09:56 -08:00
extensions.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
logs.json Update generated proto and swagger docs 2016-09-12 18:47:03 -07:00
networking.k8s.io_v1.json Clarify that ListOptions.Timeout is not conditional on inactivity 2018-02-05 17:04:03 -05:00
networking.k8s.io.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
policy_v1alpha1.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
policy_v1beta1.json Update generated files. 2018-02-19 20:14:28 +01:00
policy.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
rbac.authorization.k8s.io_v1.json Clarify that ListOptions.Timeout is not conditional on inactivity 2018-02-05 17:04:03 -05:00
rbac.authorization.k8s.io_v1alpha1.json Clarify that ListOptions.Timeout is not conditional on inactivity 2018-02-05 17:04:03 -05:00
rbac.authorization.k8s.io_v1beta1.json Clarify that ListOptions.Timeout is not conditional on inactivity 2018-02-05 17:04:03 -05:00
rbac.authorization.k8s.io.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
resourceListing.json Prefer apps/v1 storage for daemonsets, deployments, replicasets 2018-01-26 00:37:08 -05:00
scheduling.k8s.io_v1alpha1.json autogenerated files 2018-02-18 18:20:10 -08:00
scheduling.k8s.io.json autogenerated files 2017-07-18 17:47:57 -07:00
settings.k8s.io_v1alpha1.json auto-generated 2018-02-11 11:04:15 +08:00
settings.k8s.io.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
storage.authorization.k8s.io_v1beta1.json generated code for moving StorageClass 2016-09-06 08:41:17 -04:00
storage.k8s.io_v1.json Clarify that ListOptions.Timeout is not conditional on inactivity 2018-02-05 17:04:03 -05:00
storage.k8s.io_v1alpha1.json Clarify that ListOptions.Timeout is not conditional on inactivity 2018-02-05 17:04:03 -05:00
storage.k8s.io_v1beta1.json Clarify that ListOptions.Timeout is not conditional on inactivity 2018-02-05 17:04:03 -05:00
storage.k8s.io.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
v1.json API Changes for RunAsGroup and Implementation and e2e 2018-02-28 22:09:56 -08:00
version.json update autogenerated 2016-08-18 14:14:52 -07:00