Skip to content

Commit d393ebe

Browse files
committed
fix: respect DisableAzureStackCloud on AKS control plane setting
1 parent 02ba84f commit d393ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/blob/azure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var (
4747

4848
// IsAzureStackCloud decides whether the driver is running on Azure Stack Cloud.
4949
func IsAzureStackCloud(cloud *azure.Cloud) bool {
50-
return strings.EqualFold(cloud.Config.Cloud, "AZURESTACKCLOUD")
50+
return !cloud.Config.DisableAzureStackCloud && strings.EqualFold(cloud.Config.Cloud, "AZURESTACKCLOUD")
5151
}
5252

5353
// getCloudProvider get Azure Cloud Provider

0 commit comments

Comments
 (0)