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
tar -xzf $credentialproviderbinaryPackage-C $tempDir
460
+
if ($LASTEXITCODE-ne0) {
461
+
throw"Failed to extract the '$credentialproviderbinaryPackage' archive."
462
+
}
463
+
} else {
464
+
# network isolated cluster
465
+
# download azure acr credential provider binaries via oras if BootstrapProfileContainerRegistryServer is set
466
+
if (-not (Get-Command'DownloadFileWithOras'-ErrorAction SilentlyContinue)) {
467
+
Set-ExitCode-ExitCode $global:WINDOWS_CSE_ERROR_ORAS_PULL_CREDENTIAL_PROVIDER-ErrorMessage "DownloadFileWithOras function is not available. networkisolatedclusterfunc.ps1 may not be sourced."
# 1) .../azure-acr-credential-provider/1.34.0/windows/... for dalec url, e.g. https://packages.aks.azure.com/dalec-packages/azure-acr-credential-provider/1.34.0/windows/amd64/azure-acr-credential-provider_1.34.0-1_amd64.zip
472
+
# 2) .../cloud-provider-azure/v1.34.0/binaries/... for legacy binaries url, e.g. https://packages.aks.azure.com/cloud-provider-azure/v1.34.0/binaries/azure-acr-credential-provider-linux-amd64-v1.34.0.tar.gz
473
+
# If version is missing in URL, fall back to KubeBinariesVersion.
Write-Warning"Unexpected CredentialProviderURL format, version is not found in URL. CredentialProviderURL: $global:CredentialProviderURL. Fall back to KubeBinariesVersion: $global:KubeBinariesVersion"
480
+
$packageVersion=$global:KubeBinariesVersion
481
+
$packageVersion=$packageVersion.TrimStart('v')
482
+
}
483
+
Logs-To-Event -TaskName "AKS.WindowsCSE.DownloadCredentialProviderBinariesWithOras"-TaskMessage "Start to download azure acr credential provider binaries with oras. KubeBinariesVersion: $global:KubeBinariesVersion, BootstrapProfileContainerRegistryServer: $global:BootstrapProfileContainerRegistryServer"
# acr-credential-provider.exe cannot be found by kubelet through provider name before the fix https://github.com/kubernetes/kubernetes/pull/120291
0 commit comments