-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release-v0.7] Support VirtualMachineClusterInstancetype and VirtualM…
…achineClusterPreference (#274) * fix backup script Signed-off-by: Michael Henriksen <[email protected]> * handle clusterinstancetype and clusterpreference Signed-off-by: Michael Henriksen <[email protected]> --------- Signed-off-by: Michael Henriksen <[email protected]> Co-authored-by: Michael Henriksen <[email protected]>
- Loading branch information
1 parent
568b5c0
commit a8423da
Showing
8 changed files
with
223 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: instancetype.kubevirt.io/v1beta1 | ||
kind: VirtualMachineClusterInstancetype | ||
metadata: | ||
name: test-vm-instancetype | ||
spec: | ||
cpu: | ||
guest: 1 | ||
memory: | ||
guest: 256Mi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: instancetype.kubevirt.io/v1beta1 | ||
kind: VirtualMachineClusterPreference | ||
metadata: | ||
name: test-vm-preference | ||
spec: | ||
cpu: | ||
preferredCPUTopology: "preferSockets" |
76 changes: 76 additions & 0 deletions
76
tests/manifests/vm_with_clusterinstancetype_and_clusterpreference.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
apiVersion: kubevirt.io/v1 | ||
kind: VirtualMachine | ||
metadata: | ||
name: test-vm-with-instancetype-and-preference | ||
labels: | ||
a.test.label: included | ||
spec: | ||
instancetype: | ||
name: test-vm-instancetype | ||
kind: VirtualMachineClusterInstancetype | ||
preference: | ||
name: test-vm-preference | ||
kind: VirtualMachineClusterPreference | ||
dataVolumeTemplates: | ||
- metadata: | ||
name: test-dv | ||
spec: | ||
pvc: | ||
accessModes: | ||
- ReadWriteOnce | ||
volumeMode: Block | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
storageClassName: {{KVP_STORAGE_CLASS}} | ||
source: | ||
registry: | ||
pullMethod: node | ||
url: docker://quay.io/kubevirt/alpine-with-test-tooling-container-disk:v0.57.1 | ||
running: true | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
name: test-vm-with-instancetype-and-preference | ||
spec: | ||
domain: | ||
devices: | ||
disks: | ||
- disk: | ||
bus: virtio | ||
name: volume0 | ||
- disk: | ||
bus: virtio | ||
name: volume1 | ||
interfaces: | ||
- masquerade: {} | ||
name: default | ||
rng: {} | ||
machine: | ||
type: q35 | ||
networks: | ||
- name: default | ||
pod: {} | ||
terminationGracePeriodSeconds: 0 | ||
volumes: | ||
- dataVolume: | ||
name: test-dv | ||
name: volume0 | ||
- cloudInitNoCloud: | ||
networkData: |- | ||
ethernets: | ||
eth0: | ||
addresses: | ||
- fd10:0:2::2/120 | ||
dhcp4: true | ||
gateway6: fd10:0:2::1 | ||
match: {} | ||
nameservers: | ||
addresses: | ||
- 10.96.0.10 | ||
search: | ||
- default.svc.cluster.local | ||
- svc.cluster.local | ||
- cluster.local | ||
version: 2 | ||
name: volume1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters