Merge pull request #6314 from dcantah/ws2022-ci
Add Windows Server 2022 CI runs
This commit is contained in:
@@ -57,7 +57,21 @@ func init() {
|
||||
testImage = "mcr.microsoft.com/windows/nanoserver:2004"
|
||||
case osversion.V20H2:
|
||||
testImage = "mcr.microsoft.com/windows/nanoserver:20H2"
|
||||
case 20348:
|
||||
// 20348 is Windows server 2022's build number.
|
||||
//
|
||||
// TODO(dcantah): Use the hardcoded number until there's an hcsshim release with this build
|
||||
// number included.
|
||||
testImage = "mcr.microsoft.com/windows/nanoserver:ltsc2022"
|
||||
default:
|
||||
// Due to some efforts in improving down-level compatibility for Windows containers (see
|
||||
// https://techcommunity.microsoft.com/t5/containers/windows-server-2022-and-beyond-for-containers/ba-p/2712487)
|
||||
// the ltsc2022 image should continue to work on builds ws2022 and onwards (Winodws 11 for example). With this in mind,
|
||||
// if there's no mapping for the host build just use the Windows Server 2022 image.
|
||||
if b > 20348 {
|
||||
testImage = "mcr.microsoft.com/windows/nanoserver:ltsc2022"
|
||||
return
|
||||
}
|
||||
fmt.Println("No test image defined for Windows build version:", b)
|
||||
panic("No windows test image found for this Windows build")
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ func TestImagePullWithDistSourceLabel(t *testing.T) {
|
||||
var (
|
||||
source = "k8s.gcr.io"
|
||||
repoName = "pause"
|
||||
tag = "3.5"
|
||||
tag = "3.6"
|
||||
)
|
||||
|
||||
ctx, cancel := testContext(t)
|
||||
|
||||
Reference in New Issue
Block a user