Skip to content

Commit c36d79d

Browse files
chore: add option for vi-pvc
Signed-off-by: Nikita Korolev <[email protected]>
1 parent f7d600b commit c36d79d

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

tests/performance/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
## values.yaml
33
- `vmDiskType`:
44
- `vi`: creates VMs with VirtualImage in `blockDeviceRefs`
5-
- `vd`: creates VMs with corresponding `VirtualDisk`
5+
- `vd`: creates VMs with corresponding `VirtualDisk`
6+
- `viType`:
7+
- `pvc`: create vi with persistentVolumeClaim type

tests/performance/templates/vmds.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,17 @@ metadata:
77
labels:
88
vm: {{ $.Values.resourcesPrefix }}
99
spec:
10+
{{- if eq .Values.viType "pvc" }}
11+
storage: PersistentVolumeClaim
12+
persistentVolumeClaim:
13+
storageClassName: {{ $.Values.storageClass }}
14+
{{- else }}
1015
storage: ContainerRegistry
1116
dataSource:
1217
type: "HTTP"
1318
http:
1419
url: {{ $.Values.imageURL }}
20+
{{- end }}
1521
{{- if ne .Values.vmDiskType "vi" }}
1622
{{- $count := (.Values.count | int) }}
1723
{{- range until $count }}

tests/performance/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ spec:
66
memory:
77
size: 256Mi
88

9+
viType: vi
10+
# viType: pvc
911
vmDiskType: vd
1012
resources: "all"
1113
resourcesPrefix: "performance"

0 commit comments

Comments
 (0)