k3s/test
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
..
conformance Adds daemonset conformance tests 2018-02-28 12:43:02 -08:00
e2e Merge pull request #59840 from jennybuckley/webhooks-on-webhooks 2018-03-05 19:09:33 -08:00
e2e_node Merge pull request #60509 from verb/pid-e2e 2018-03-05 14:20:14 -08:00
fixtures Make Scale() for RC poll-based until #31345 is fixed 2018-02-27 13:10:38 +01:00
images Prevent webhooks from affecting admission requests for webhooks 2018-03-05 16:35:52 -08:00
integration Merge pull request #60557 from hanxiaoshuai/fixtodo0228 2018-03-01 06:03:40 -08:00
kubemark remove gcloud docker -- since it's deprecated 2018-02-28 00:24:27 -08:00
list Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
soak Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
typecheck Ensure status bar displays full progress. 2018-02-27 14:32:06 -08:00
utils Merge pull request #59840 from jennybuckley/webhooks-on-webhooks 2018-03-05 19:09:33 -08:00
BUILD Add test/typecheck, a fast typecheck for all build platforms. 2018-02-27 13:53:32 -08:00
OWNERS
test_owners.csv
test_owners.json