This task uses virt-customize to run a customize script on a target pvc.
- pvc: PersistentVolumeClaim to run the the virt-customize script in. PVC should be in the same namespace as taskrun/pipelinerun.
- customizeCommands: virt-customize commands in
--commands-from-file
format. - verbose: Enable verbose mode and tracing of libguestfs API calls.
- additionalOptions: Additional options to pass to virt-customize.
Task run using resolver:
apiVersion: tekton.dev/v1
kind: TaskRun
metadata:
generateName: disk-virt-customize-taskrun-
spec:
params:
- name: pvc
value: example-pvc
- name: customizeCommands
value: install make,ansible
taskRef:
params:
- name: catalog
value: kubevirt-tekton-tasks
- name: type
value: artifact
- name: kind
value: task
- name: name
value: disk-virt-customize
- name: version
value: v0.20.0
resolver: hub
- The input PVC disk should not be accessed by a running VM or other tools like virt-customize concurrently.
The task will fail with a generic
...guestfs_launch failed...
message. Verbose parameter can be set to true for more information.
- Linux: full; all the customize commands work
- Windows: partial; only some customize commands work