Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
fix: specify correct pause image in containerd config for Windows 20h2
Browse files Browse the repository at this point in the history
  • Loading branch information
marosset committed Mar 24, 2021
1 parent 41a716a commit 972acb7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion parts/k8s/windowscontainerdfunc.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ function Select-Windows-Version {
"18362" { return "1903" }
"18363" { return "1909" }
"19041" { return "2004" }
"19042" { return "20H2" }
Default { return "" }
}
}
Expand Down Expand Up @@ -143,7 +144,12 @@ function Install-Containerd {
$formatedbin = $(($CNIBinDir).Replace("\", "/"))
$formatedconf = $(($CNIConfDir).Replace("\", "/"))
$sandboxIsolation = 0
$windowsVersion = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").ReleaseId
$windowsReleaseId = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").ReleaseId
switch ($windowsReleaseId)
{
"2009" { $windowsVersion = "20H2"}
default { $windowsVersion = $windowsReleaseId}
}
$hypervRuntimes = ""
$hypervHandlers = $global:HypervRuntimeHandlers.split(",", [System.StringSplitOptions]::RemoveEmptyEntries)

Expand Down
8 changes: 7 additions & 1 deletion pkg/engine/templates_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 972acb7

Please sign in to comment.