Skip to content

Commit

Permalink
Ensured ArchitectureConfiguration is initializated for the created ku…
Browse files Browse the repository at this point in the history
…bevirt config

Signed-off-by: David Aghaian <[email protected]>
  • Loading branch information
aghaiand committed May 5, 2023
1 parent 3cc98ca commit 3a0a76f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ var _ = Describe("[rfe_id:1177][crit:medium][vendor:[email protected]][level:com
BeforeEach(func() {
kv := util.GetCurrentKv(virtClient)
kubevirtConfiguration := kv.Spec.Configuration
kubevirtConfiguration.ArchitectureConfiguration = &v1.ArchConfiguration{}

kubevirtConfiguration.ArchitectureConfiguration.Amd64.MachineType = testingMachineType
kubevirtConfiguration.ArchitectureConfiguration.Arm64.MachineType = testingMachineType
Expand Down
3 changes: 2 additions & 1 deletion tests/vmi_configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1797,7 +1797,7 @@ var _ = Describe("[sig-compute]Configurations", decorators.SigCompute, func() {
kv := util.GetCurrentKv(virtClient)

config := kv.Spec.Configuration

config.ArchitectureConfiguration = &v1.ArchConfiguration{}
config.ArchitectureConfiguration.Amd64.EmulatedMachines = []string{"q35*", "pc-q35*", "pc*"}
config.ArchitectureConfiguration.Arm64.EmulatedMachines = []string{"q35*", "pc-q35*", "pc*"}
config.ArchitectureConfiguration.Ppc64le.EmulatedMachines = []string{"q35*", "pc-q35*", "pc*"}
Expand Down Expand Up @@ -1848,6 +1848,7 @@ var _ = Describe("[sig-compute]Configurations", decorators.SigCompute, func() {
kv := util.GetCurrentKv(virtClient)

config := kv.Spec.Configuration
config.ArchitectureConfiguration = &v1.ArchConfiguration{}
config.ArchitectureConfiguration.Amd64.MachineType = "pc"
config.ArchitectureConfiguration.Arm64.MachineType = "pc"
config.ArchitectureConfiguration.Ppc64le.MachineType = "pc"
Expand Down

0 comments on commit 3a0a76f

Please sign in to comment.