Skip to content
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

Single webhook per configuration entity #600

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

ahadas
Copy link
Member

@ahadas ahadas commented Sep 21, 2023

We've noticed an unexpected behavior in OpenShift:

  1. ValidatingWebhookConfiguration or MutatingWebhookConfiguration is posted with a webhook
  2. CA bundle is injected to the webhook
  3. More webhooks are added to the configuration entity
  4. Some of the webhooks (in our case it has always been the last one) does not get a CA bundle injected

This is a workaround for this issue - avoid adding webhooks to an existing configuration entity by separating each webhook to a different configuration entity.

Backport of #596

We've noticed an unexpected behavior in OpenShift:
1. ValidatingWebhookConfiguration or MutatingWebhookConfiguration is
   posted with a webhook
2. CA bundle is injected to the webhook
3. More webhooks are added to the configuration entity
4. Some of the webhooks (in our case it has always been the last one)
   does not get a CA bundle injected

This is a workaround for this issue - avoid adding webhooks to an
existing configuration entity by separating each webhook to a different
configuration entity.

Signed-off-by: Arik Hadas <ahadas@redhat.com>
@ahadas ahadas requested a review from mnecas as a code owner September 21, 2023 12:12
@sonarcloud
Copy link

sonarcloud bot commented Sep 21, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@ahadas ahadas merged commit 46547f1 into kubev2v:release-v2.5.1 Sep 22, 2023
5 checks passed
@ahadas ahadas deleted the release-v2.5.1 branch September 22, 2023 10:13
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.

2 participants