Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
Signed-off-by: yaroslavborbat <[email protected]>
  • Loading branch information
yaroslavborbat committed Dec 10, 2024
1 parent fb2423c commit 7b7e03a
Show file tree
Hide file tree
Showing 5 changed files with 821 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,36 @@ tasks:
}'
kubectl -n d8-virtualization port-forward pod/<virt-handler-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 <<EOF
kubectl -n d8-virtualization patch deploy virt-controller --type='strategic' -p '{
"spec": {
"template": {
"spec": {
"containers": [ {
"name": "virt-controller",
"image": "${IMAGE}",
"ports": [ { "containerPort": 2345, "name": "dlv" } ]
}]
}
}
}
}'
kubectl -n d8-virtualization port-forward deploy/virt-controller 2345:2345
EOF
2 changes: 2 additions & 0 deletions crds/embedded/virtualmachineinstances.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3076,6 +3076,8 @@ spec:
path:
description: Path defines the path to disk file in the container
type: string
hotpluggable:
type: boolean
required:
- image
type: object
Expand Down
31 changes: 31 additions & 0 deletions crds/embedded/virtualmachines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3868,6 +3868,8 @@ spec:
description: Path defines the path to disk file
in the container
type: string
hotpluggable:
type: boolean
required:
- image
type: object
Expand Down Expand Up @@ -4491,6 +4493,35 @@ spec:
description: VolumeSource represents the source of the volume
to map to the disk.
properties:
containerDisk:
type: object
description: |-
ContainerDisk references a docker image, embedding a qcow or raw disk.
More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html
properties:
image:
description: Image is the name of the image with
the embedded disk.
type: string
imagePullPolicy:
description: |-
Image pull policy.
One of Always, Never, IfNotPresent.
Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
Cannot be updated.
More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
type: string
imagePullSecret:
description: ImagePullSecret is the name of the
Docker registry secret required to pull the image.
The secret must already exist.
type: string
path:
description: Path defines the path to disk file
in the container
type: string
hotpluggable:
type: boolean
dataVolume:
description: |-
DataVolume represents the dynamic creation a PVC for this volume as well as
Expand Down
Loading

0 comments on commit 7b7e03a

Please sign in to comment.