Skip to content

Commit

Permalink
Merge pull request #9 from maiqueb/webhook-listen-only-to-kubevirt-la…
Browse files Browse the repository at this point in the history
…uncher-creates

deploy, webhook: only listen to kubevirt launcher pod creation events
  • Loading branch information
maiqueb authored May 14, 2024
2 parents b805080 + a5f8039 commit e542b8e
Show file tree
Hide file tree
Showing 2 changed files with 14 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 MutatingWebhookConfiguration
Expand Down
3 changes: 3 additions & 0 deletions dist/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ webhooks:
path: /mutate-v1-pod
failurePolicy: Fail
name: ipam-claims.k8s.cni.cncf.io
objectSelector:
matchLabels:
kubevirt.io: virt-launcher
rules:
- apiGroups:
- ""
Expand Down

0 comments on commit e542b8e

Please sign in to comment.