Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: yaroslavborbat <[email protected]>
  • Loading branch information
yaroslavborbat committed Dec 19, 2024
1 parent 5997215 commit 96ee51e
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,68 +151,68 @@ tasks:
- task: cve:bin
- tools/cve/scan-main.sh {{.REPORT_FILE_NAME}}

dlv:virt-handler:build:
desc: "Build image virt-handler with dlv"
cmd: docker build -f ./images/virt-handler/debug/dlv.Dockerfile -t "{{ .DLV_IMAGE }}" --platform linux/amd64 .
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-handler:build-push:
desc: "Build and Push image virt-handler with dlv"
dlv:virt-controller:build-push:
desc: "Build and Push image virt-controller with dlv"
cmds:
- task: dlv:virt-handler:build
- task: dlv:virt-controller:build
- docker push "{{ .DLV_IMAGE }}"
- task: dlv:virt-handler:print
- task: dlv:virt-controller:print

dlv:virt-handler:print:
dlv:virt-controller:print:
desc: "Print commands for debug"
env:
IMAGE: "{{ .DLV_IMAGE }}"
cmd: |
cat <<EOF
kubectl -n d8-virtualization patch ds virt-handler --type='strategic' -p '{
kubectl -n d8-virtualization patch deploy virt-controller --type='strategic' -p '{
"spec": {
"template": {
"spec": {
"containers": [ {
"name": "virt-handler",
"name": "virt-controller",
"image": "${IMAGE}",
"ports": [ { "containerPort": 2345, "name": "dlv" } ]
}]
}
}
}
}'
kubectl -n d8-virtualization port-forward pod/<virt-handler-pod> 2345:2345
kubectl -n d8-virtualization port-forward deploy/virt-controller 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-handler:build:
desc: "Build image virt-handler with dlv"
cmd: docker build -f ./images/virt-handler/debug/dlv.Dockerfile -t "{{ .DLV_IMAGE }}" --platform linux/amd64 .

dlv:virt-controller:build-push:
desc: "Build and Push image virt-controller with dlv"
dlv:virt-handler:build-push:
desc: "Build and Push image virt-handler with dlv"
cmds:
- task: dlv:virt-controller:build
- task: dlv:virt-handler:build
- docker push "{{ .DLV_IMAGE }}"
- task: dlv:virt-controller:print
- task: dlv:virt-handler:print

dlv:virt-controller:print:
dlv:virt-handler:print:
desc: "Print commands for debug"
env:
IMAGE: "{{ .DLV_IMAGE }}"
cmd: |
cat <<EOF
kubectl -n d8-virtualization patch deploy virt-controller --type='strategic' -p '{
kubectl -n d8-virtualization patch ds virt-handler --type='strategic' -p '{
"spec": {
"template": {
"spec": {
"containers": [ {
"name": "virt-controller",
"name": "virt-handler",
"image": "${IMAGE}",
"ports": [ { "containerPort": 2345, "name": "dlv" } ]
}]
}
}
}
}'
kubectl -n d8-virtualization port-forward deploy/virt-controller 2345:2345
kubectl -n d8-virtualization port-forward pod/<virt-handler-pod> 2345:2345
EOF

0 comments on commit 96ee51e

Please sign in to comment.