From 7b7e03aa313680bced3532cd9d93ddc7b316eacb Mon Sep 17 00:00:00 2001 From: yaroslavborbat Date: Tue, 10 Dec 2024 10:30:46 +0300 Subject: [PATCH] add Signed-off-by: yaroslavborbat --- Taskfile.yaml | 33 + crds/embedded/virtualmachineinstances.yaml | 2 + crds/embedded/virtualmachines.yaml | 31 + .../patches/027-hotplug-container-disk.patch | 724 ++++++++++++++++++ images/virt-controller/debug/dlv.Dockerfile | 31 + 5 files changed, 821 insertions(+) create mode 100644 images/virt-artifact/patches/027-hotplug-container-disk.patch create mode 100644 images/virt-controller/debug/dlv.Dockerfile diff --git a/Taskfile.yaml b/Taskfile.yaml index 8af220c0a..63c0d44d5 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -180,3 +180,36 @@ tasks: }' kubectl -n d8-virtualization port-forward pod/ 2345:2345 EOF + + dlv:virt-controller:build: + desc: "Build image virt-controller with dlv" + cmd: docker build -f ./images/virt-controller/debug/dlv.Dockerfile -t "{{ .DLV_IMAGE }}" . + + dlv:virt-controller:build-push: + desc: "Build and Push image virt-controller with dlv" + cmds: + - task: dlv:virt-controller:build + - docker push "{{ .DLV_IMAGE }}" + - task: dlv:virt-controller:print + + dlv:virt-controller:print: + desc: "Print commands for debug" + env: + IMAGE: "{{ .DLV_IMAGE }}" + cmd: | + cat <