mirror of https://github.com/k3s-io/k3s
![]() 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 ``` |
||
---|---|---|
.. | ||
BUILD | ||
aggregator.go | ||
certs.go | ||
chunking.go | ||
crd_watch.go | ||
custom_resource_definition.go | ||
etcd_failure.go | ||
framework.go | ||
garbage_collector.go | ||
generated_clientset.go | ||
initializers.go | ||
namespace.go | ||
table_conversion.go | ||
watch.go | ||
webhook.go |