Skip to content

Commit

Permalink
move arm64/aarch64 validation logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdyoung committed Sep 28, 2022
1 parent fa6443a commit b8475aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/bminventory/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -3956,10 +3956,11 @@ func validateArchitectureAndVersion(v versions.Handler, c *common.Cluster, cpuAr
if ocpVersion == "" {
ocpVersion = c.OpenshiftVersion
}
if c.CPUArchitecture == "aarch64" && cpuArch == "arm64" {
return nil
}
if c.CPUArchitecture != common.MultiCPUArchitecture {
if c.CPUArchitecture == "aarch64" && cpuArch == "arm64" {
return nil
} else if c.CPUArchitecture != "" && c.CPUArchitecture != cpuArch {
if c.CPUArchitecture != "" && c.CPUArchitecture != cpuArch {
return errors.Errorf("Specified CPU architecture (%s) doesn't match the cluster (%s)", cpuArch, c.CPUArchitecture)
}
} else {
Expand Down

0 comments on commit b8475aa

Please sign in to comment.