• Kubernetes Submit Queue's avatar
    Merge pull request #62350 from jennybuckley/crd-tests-flaky · ce1cab3b
    Kubernetes Submit Queue authored
    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
    ```
    ce1cab3b
Name
Last commit
Last update
..
image Loading commit data...
junit Loading commit data...
BUILD Loading commit data...
conditions.go Loading commit data...
create_resources.go Loading commit data...
delete_resources.go Loading commit data...
density_utils.go Loading commit data...
deployment.go Loading commit data...
pod_store.go Loading commit data...
replicaset.go Loading commit data...
runners.go Loading commit data...
tmpdir.go Loading commit data...
update_resources.go Loading commit data...