Skip to content

Use different WebhookConfiguration name in every webhook e2e test spec #2811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nprokopic
Copy link
Contributor

@nprokopic nprokopic commented May 21, 2025

What issue type does this pull request address? (keep at least one, remove the others)
/kind test

What else do we need to know?
Both WebhookConfigurations created in webhooks e2e tests currently have the same name. This PR changes that so that every created WebhookConfiguration has a different name.

Having different WebhookConfiguration names in each test reduces the chance that the first test's webhook resources interfere with the second test.

Since both webhooks currently have the same name, there is a chance that the first test will interfere with the second one because when the WebhookConfiguration resource is created/deleted, API server needs a bit of time to process the changes and start/stop using the new/deleted WebhookConfiguration, but the webhook test is deleting and creating WebhookConfiguration with the same name in a matter of milliseconds.

From Kubernetes docs:

After you create the webhook configuration, the system will take a few seconds to honor the new configuration.

@nprokopic nprokopic requested a review from a team as a code owner May 21, 2025 15:01
@nprokopic nprokopic requested a review from a team May 21, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant