You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "Tests that Windows nodes in network isolated clusters configure containerd to use the bootstrap profile container registry for MCR images",
Copy file name to clipboardExpand all lines: staging/cse/windows/networkisolatedclusterfunc.ps1
+78Lines changed: 78 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -65,3 +65,81 @@ function Install-Oras {
65
65
66
66
Write-Log"Oras installed successfully at $($global:OrasPath)"
67
67
}
68
+
69
+
# For network isolated cluster, containerd has issue to pull pause image via credential provider, thus it will not be able to pull pause image during runtime. We have to pull pause image and set pinned label to avoid gc.
Set-ExitCode-ExitCode $global:WINDOWS_CSE_ERROR_ORAS_PULL_POD_INFRA_CONTAINER-ErrorMessage "Failed to pull '$image'"
120
+
}
121
+
tar -cf $podInfraContainerImageTar-C $podInfraContainerImageDownloadDir .
122
+
if ($LASTEXITCODE-ne0) {
123
+
Set-ExitCode-ExitCode $global:WINDOWS_CSE_ERROR_ORAS_PULL_POD_INFRA_CONTAINER-ErrorMessage "failed to create tar for pod infra image from '$podInfraContainerImageDownloadDir'"
Set-ExitCode-ExitCode $global:WINDOWS_CSE_ERROR_ORAS_PULL_POD_INFRA_CONTAINER-ErrorMessage ('failed to label pod infra image ''{0}'' as pinned: {1}'-f$podInfraContainerImage,$labelOutput)
0 commit comments