We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82f827d commit 6327b72Copy full SHA for 6327b72
kubernetes/windows/main.ps1
@@ -311,7 +311,9 @@ Set-EnvironmentVariables
311
Start-FileSystemWatcher
312
313
#Bootstrapping CA certs for non public clouds and AKS clusters
314
-if (![string]::IsNullOrEmpty([System.Environment]::GetEnvironmentVariable("AKS_RESOURCE_ID"))) {
+$aksResourceId = [System.Environment]::GetEnvironmentVariable("AKS_RESOURCE_ID")
315
+if (![string]::IsNullOrEmpty($aksResourceId) && $aksResourceId.ToLower() -contains "/microsoft.containerservice/managedclusters/")
316
+{
317
Bootstrap-CACertificates
318
}
319
0 commit comments