Skip to content

Commit

Permalink
Merge pull request kubevirt#8342 from jcanocan/fix-example
Browse files Browse the repository at this point in the history
Fix vm-cirros-cluster-csmall VirtualMachineClusterInstancetype name value.
  • Loading branch information
kubevirt-bot authored Oct 29, 2022
2 parents f67cb8e + 63a26bc commit 6db7afa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions examples/vm-cirros-cluster-csmall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
labels:
kubevirt.io/vm: vm-cirros-csmall
name: vm-cirros-csmall
kubevirt.io/vm: vm-cirros-cluster-csmall
name: vm-cirros-cluster-csmall
spec:
instancetype:
kind: VirtualMachineClusterInstancetype
name: csmall
name: cluster-csmall
running: false
template:
metadata:
labels:
kubevirt.io/vm: vm-cirros-csmall
kubevirt.io/vm: vm-cirros-cluster-csmall
spec:
domain:
devices:
Expand Down
6 changes: 3 additions & 3 deletions tools/vms-generator/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -1254,12 +1254,12 @@ func GetVmCirrosInstancetypeComputeSmall() *v1.VirtualMachine {
}

func GetVmCirrosClusterInstancetypeComputeSmall() *v1.VirtualMachine {
vm := getBaseVM(VmCirrosInstancetypeComputeSmall, map[string]string{
kubevirtIoVM: VmCirrosInstancetypeComputeSmall,
vm := getBaseVM(VmCirrosClusterInstancetypeComputeSmall, map[string]string{
kubevirtIoVM: VmCirrosClusterInstancetypeComputeSmall,
})

vm.Spec.Instancetype = &v1.InstancetypeMatcher{
Name: VirtualMachineInstancetypeComputeSmall,
Name: VirtualMachineClusterInstancetypeComputeSmall,
Kind: "VirtualMachineClusterInstancetype",
}

Expand Down

0 comments on commit 6db7afa

Please sign in to comment.