k3s/test/e2e/apimachinery
Kubernetes Submit Queue ce1cab3bfa
Merge pull request #62350 from jennybuckley/crd-tests-flaky
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>.

 Fix flaky crd e2e tests

Fixes #62345

/sig api-machinery
/kind flake
/priority failing-test

From the issue:
> All the tests that rely on creating a CustomResourceDefinition are flaky. This is because the test "AdmissionWebhook Should be able to deny custom resource creation" creates a validating webhook, called deny-crd.k8s.io, which denies all crd creations. This is an issue for any other test which will create a crd that gets run in parallel with that webhook test, causing them to fail with the message failed to create CustomResourceDefinition: admission webhook "deny-crd.k8s.io" denied the request: this webhook denies all requests

This PR changes the test webhook image to support handling a new "/crd" path which would accept and deny crd creations based on their labels, only denying if if the object has the label ```"webhook-e2e-test":"webhook-disallow"```, and updates the "AdmissionWebhook Should be able to deny custom resource creation" test to use that label.

**Release note**:
```release-note
NONE
```
2018-04-13 09:28:44 -07:00
..
BUILD Add e2e test for CRD Watch 2018-04-02 19:40:36 +05:30
aggregator.go Bump etcd default server version to 3.2.18 2018-04-11 21:12:44 -07:00
certs.go Add a e2e test for the admission webhook 2017-10-27 15:58:23 -07:00
chunking.go API chunking tests should fail if limit is breached 2017-11-17 10:30:35 -05:00
crd_watch.go Add e2e test for CRD Watch 2018-04-02 19:40:36 +05:30
custom_resource_definition.go Add dns, configmap, and custom resource definition conformance 2017-11-01 08:58:56 -07:00
etcd_failure.go Use pause manifest image 2018-04-06 11:00:50 +05:30
framework.go
garbage_collector.go Merge pull request #59637 from hanxiaoshuai/bugfix0209 2018-03-20 04:34:31 -07:00
generated_clientset.go use core client with explicit version globally 2017-10-27 15:48:32 +08:00
initializers.go Collect all the assorted image URLs from e2e tests in one place 2017-12-19 12:16:07 -05:00
namespace.go Use pause manifest image 2018-04-06 11:00:50 +05:30
table_conversion.go Run server-side print tests only on k8s 1.10+ 2018-03-05 17:52:51 +01:00
watch.go Seperate timer durations for expectEvent and expectNoEvent 2018-04-02 19:42:12 +05:30
webhook.go Fix flaky crd e2e tests 2018-04-11 14:08:05 -07:00