-
Notifications
You must be signed in to change notification settings - Fork 34
/
disk-virt-sysprep.yaml
137 lines (137 loc) · 4.35 KB
/
disk-virt-sysprep.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
---
apiVersion: tekton.dev/v1
kind: Task
metadata:
annotations:
tekton.dev/pipelines.minVersion: "0.43.0"
tekton.dev/categories: Automation
tekton.dev/tags: kubevirt
tekton.dev/displayName: "KubeVirt disk virt sysprep"
tekton.dev/platforms: "linux/amd64"
artifacthub.io/maintainers: |
- name: KubeVirt Tekton tasks maintainers
email: [email protected]
artifacthub.io/provider: KubeVirt
artifacthub.io/recommendations: |
- url: https://kubevirt.io/
artifacthub.io/category: integration-delivery
labels:
app.kubernetes.io/version: v0.23.0
name: disk-virt-sysprep
spec:
description: >-
Run virt-sysprep command on given PVC. Usefull for manipulation with virtual machine's disks.
params:
- name: pvc
description: PersistentVolumeClaim to run the the virt-sysprep script in. PVC should be in the same namespace as taskrun/pipelinerun.
type: string
- name: virtCommands
description: virt-sysprep commands in "--commands-from-file" format.
type: string
default: ""
- name: verbose
description: Enable verbose mode and tracing of libguestfs API calls.
type: string
default: 'false'
- name: additionalVirtOptions
description: Additional options to pass to virt-sysprep.
type: string
default: ""
steps:
- name: run-virt-sysprep
image: "quay.io/kubevirt/tekton-tasks-disk-virt:v0.23.0"
command:
- entrypoint
args:
- '--verbose'
- $(params.verbose)
env:
- name: COMMAND
value: disk-virt-sysprep
- name: VIRT_COMMANDS
value: $(params.virtCommands)
- name: ADDITIONAL_VIRT_OPTIONS
value: $(params.additionalVirtOptions)
- name: LIBGUESTFS_BACKEND
value: direct
computeResources:
limits:
devices.kubevirt.io/kvm: '1'
devices.kubevirt.io/tun: '1'
devices.kubevirt.io/vhost-net: '1'
requests:
devices.kubevirt.io/kvm: '1'
devices.kubevirt.io/tun: '1'
devices.kubevirt.io/vhost-net: '1'
volumeMounts:
- mountPath: /mnt/appliance/
name: guestfsappliance
- mountPath: /mnt/targetpvc/
name: targetpvc
volumes:
- name: guestfsappliance
emptyDir: {}
- name: targetpvc
persistentVolumeClaim:
claimName: $(params.pvc)
workspaces:
- name: data01
description: |
An optional workspace that may contain files or secrets to be
used during the virt-customize run.
optional: true
mountPath: /data01
- name: data02
description: |
An optional workspace that may contain files or secrets to be
used during the virt-customize run.
optional: true
mountPath: /data02
- name: data03
description: |
An optional workspace that may contain files or secrets to be
used during the virt-customize run.
optional: true
mountPath: /data03
- name: data04
description: |
An optional workspace that may contain files or secrets to be
used during the virt-customize run.
optional: true
mountPath: /data04
- name: data05
description: |
An optional workspace that may contain files or secrets to be
used during the virt-customize run.
optional: true
mountPath: /data05
- name: data06
description: |
An optional workspace that may contain files or secrets to be
used during the virt-customize run.
optional: true
mountPath: /data06
- name: data07
description: |
An optional workspace that may contain files or secrets to be
used during the virt-customize run.
optional: true
mountPath: /data07
- name: data08
description: |
An optional workspace that may contain files or secrets to be
used during the virt-customize run.
optional: true
mountPath: /data08
- name: data09
description: |
An optional workspace that may contain files or secrets to be
used during the virt-customize run.
optional: true
mountPath: /data09
- name: data10
description: |
An optional workspace that may contain files or secrets to be
used during the virt-customize run.
optional: true
mountPath: /data10