Skip to content

Commit

Permalink
deploy, webhook: only listen to kubevirt launcher pod creation events
Browse files Browse the repository at this point in the history
This way, the webhook is less disruptive in the cluster - i.e. it will
only impact KubeVirt VM workloads.

Signed-off-by: Miguel Duarte Barroso <mdbarroso@redhat.com>
  • Loading branch information
maiqueb committed May 10, 2024
1 parent f648b76 commit f0c7094
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ resources:
patches:
- path: manager_webhook_patch.yaml
- path: webhookcainjection_patch.yaml
- patch: |-
- op: add
path: /webhooks/0/objectSelector
value:
matchLabels:
kubevirt.io: virt-launcher
target:
kind: MutatingWebhookConfiguration
group: admissionregistration.k8s.io
version: v1
name: mutating-webhook-configuration

replacements:
- source: # Add cert-manager annotation to ValidatingWebhookConfiguration, MutatingWebhookConfiguration and CRDs
Expand Down

0 comments on commit f0c7094

Please sign in to comment.