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
$global:NetworkIsolatedClusterTestMode= [System.Convert]::ToBoolean("{{GetNetworkIsolatedClusterTestMode}}"); # for ab e2e only for local ab test with remote cse package
226
227
227
228
$global:OrasCacheDir="c:\aks-tools\oras\"# refer to components.json
([string]::IsNullOrWhiteSpace($global:BootstrapProfileContainerRegistryServer)) # skip download for network isolated cluster which will use cached scripts
if (-not (Test-Path"C:\AzureData\windows\azurecnifunc.ps1")) {
254
250
# CSEScriptsPackage is cached on VHD. Previously the cse package version was managed in components.json, whereas RP set the package URL which is a storage account.
255
-
# From 2025-06 The CSE packages is eleased on the VHD. RP can use fully qualified URL to download CSE scripts package when required out of VHD release cycle.
251
+
# From 2025-06 The CSE packages is released on the VHD. RP can use fully qualified URL to download CSE scripts package when required out of VHD release cycle.
256
252
# In the transition period, it is important that when deal with older VHD versions, the agentbaker runtime provision script needs to be compatible with the latest known storage account package, 0.0.52.
257
-
Write-Log"Requested CSEScriptsPackageUrl is $global:CSEScriptsPackageUrl"
258
-
if ($global:CSEScriptsPackageUrl.EndsWith("/")) {
259
-
$search=@()
260
-
if ($global:CacheDir-and (Test-Path$global:CacheDir)) {
Write-Log"CSEScriptsPackageUrl used for provision is $global:CSEScriptsPackageUrl"
282
+
283
+
# Download CSE function scripts
284
+
$downloadedFile='c:\csescripts.zip'
285
+
Logs-To-Event -TaskName "AKS.WindowsCSE.DownloadAndExpandCSEScriptPackageUrl"-TaskMessage "Start to get CSE scripts. CSEScriptsPackageUrl: $global:CSEScriptsPackageUrl"
Write-Log"Network isolated cluster detected (BootstrapProfileContainerRegistryServer is set), skip CSE scripts download and use cached scripts"
291
+
if (-not$scriptsZip) {
292
+
Set-ExitCode-ExitCode $global:WINDOWS_CSE_ERROR_NETWORK_ISOLATED_CLUSTER_CSE_NOT_CACHED-ErrorMessage "Cached CSE scripts package '$WindowsCSEScriptsPackage' not found under cache directory '$global:CacheDir'"
270
293
}
271
-
Write-Log"WindowsCSEScriptsPackage is $WindowsCSEScriptsPackage"
Write-Log"CSEScriptsPackageUrl used for provision is $global:CSEScriptsPackageUrl"
275
-
276
-
# Download CSE function scripts
277
-
Logs-To-Event -TaskName "AKS.WindowsCSE.DownloadAndExpandCSEScriptPackageUrl"-TaskMessage "Start to get CSE scripts. CSEScriptsPackageUrl: $global:CSEScriptsPackageUrl"
0 commit comments