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

deploy, webhook: only listen to kubevirt launcher pod creation events #9

Merged
merged 1 commit into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
3 changes: 3 additions & 0 deletions dist/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,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
Loading