Skip to content

Commit ce5f7b8

Browse files
authored
Merge pull request #2411 from crunchywelch/2401-arm64_support
issue 2401 - normalize "aarch64" architectures to "arm64"
2 parents b085609 + 9d70276 commit ce5f7b8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

manager/scheduler/filter.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,14 @@ func (f *PlatformFilter) platformEqual(imgPlatform, nodePlatform api.Platform) b
294294
nodePlatform.Architecture = "amd64"
295295
}
296296

297+
// normalize "aarch64" architectures to "arm64"
298+
if imgPlatform.Architecture == "aarch64" {
299+
imgPlatform.Architecture = "arm64"
300+
}
301+
if nodePlatform.Architecture == "aarch64" {
302+
nodePlatform.Architecture = "arm64"
303+
}
304+
297305
if (imgPlatform.Architecture == "" || imgPlatform.Architecture == nodePlatform.Architecture) && (imgPlatform.OS == "" || imgPlatform.OS == nodePlatform.OS) {
298306
return true
299307
}

0 commit comments

Comments
 (0)