Merge pull request #14759 from spowelljr/fixArmPreloadUpload

Fix arm64 preload upload
pull/14768/head
Steven Powell 2022-08-08 15:04:45 -07:00 committed by GitHub
commit f6775a16bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ func getVersionsFromFilename(filename string) (string, string) {
preloadVersion := parts[3]
k8sVersion := parts[4]
// this check is for "-rc" and "-beta" versions that would otherwise be stripped off
if len(parts) == 9 {
if len(parts) >= 9 && parts[5] != "cri" {
k8sVersion += fmt.Sprintf("-%s", parts[5])
}
return preloadVersion, k8sVersion