This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / spindle / engines / microvm / placement / placement.go
328 B 15 lines
1package placement 2 3func IsNativeArchitecture(imageArch, goArch string) bool { 4 normalize := func(arch string) string { 5 switch arch { 6 case "x86_64", "amd64": 7 return "amd64" 8 case "aarch64", "arm64": 9 return "arm64" 10 default: 11 return arch 12 } 13 } 14 return imageArch != "" && normalize(imageArch) == normalize(goArch) 15}