Skip to content

Commit

Permalink
chore: add option for vi-pvc
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Korolev <[email protected]>
  • Loading branch information
universal-itengineer committed Dec 3, 2024
1 parent 1f31e33 commit 9aa41da
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/performance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
## values.yaml
- `vmDiskType`:
- `vi`: creates VMs with VirtualImage in `blockDeviceRefs`
- `vd`: creates VMs with corresponding `VirtualDisk`
- `vd`: creates VMs with corresponding `VirtualDisk`
- `viType`:
- `pvc`: create vi with persistentVolumeClaim type
6 changes: 6 additions & 0 deletions tests/performance/templates/vmds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ metadata:
labels:
vm: {{ $.Values.resourcesPrefix }}
spec:
{{- if eq .Values.viType "pvc" }}
storage: PersistentVolumeClaim
persistentVolumeClaim:
storageClassName: {{ $.Values.storageClass }}
{{- else }}
storage: ContainerRegistry
dataSource:
type: "HTTP"
http:
url: {{ $.Values.imageURL }}
{{- end }}
{{- if ne .Values.vmDiskType "vi" }}
{{- $count := (.Values.count | int) }}
{{- range until $count }}
Expand Down
2 changes: 2 additions & 0 deletions tests/performance/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ spec:
memory:
size: 256Mi

viType: vi
# viType: pvc
vmDiskType: vd
resources: "all"
resourcesPrefix: "performance"
Expand Down

0 comments on commit 9aa41da

Please sign in to comment.