File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -559,7 +559,7 @@ func (s *ClusterScope) VNetSpec() azure.ASOResourceSpecGetter[*asonetworkv1api20
559
559
560
560
// PrivateDNSSpec returns the private dns zone spec.
561
561
func (s * ClusterScope ) PrivateDNSSpec () (zoneSpec azure.ResourceSpecGetter , linkSpec , recordSpec []azure.ResourceSpecGetter ) {
562
- if s .IsAPIServerPrivate () {
562
+ if s .IsAPIServerPrivate () && ! s . IsAzureStack () {
563
563
resourceGroup := s .ResourceGroup ()
564
564
if s .AzureCluster .Spec .NetworkSpec .PrivateDNSZoneResourceGroup != "" {
565
565
resourceGroup = s .AzureCluster .Spec .NetworkSpec .PrivateDNSZoneResourceGroup
@@ -1251,3 +1251,8 @@ func (s *ClusterScope) getLastAppliedSecurityRules(nsgName string) map[string]in
1251
1251
}
1252
1252
return lastAppliedSecurityRules
1253
1253
}
1254
+
1255
+ // IsAzureStack returns true if the cluster is running on Azure Stack.
1256
+ func (s * ClusterScope ) IsAzureStack () bool {
1257
+ return strings .EqualFold (s .Environment .Name , azure .StackCloudName )
1258
+ }
You can’t perform that action at this time.
0 commit comments