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 @@ -558,7 +558,7 @@ func (s *ClusterScope) VNetSpec() azure.ASOResourceSpecGetter[*asonetworkv1api20
558
558
559
559
// PrivateDNSSpec returns the private dns zone spec.
560
560
func (s * ClusterScope ) PrivateDNSSpec () (zoneSpec azure.ResourceSpecGetter , linkSpec , recordSpec []azure.ResourceSpecGetter ) {
561
- if s .IsAPIServerPrivate () {
561
+ if s .IsAPIServerPrivate () && ! s . IsHybridEnvironment () {
562
562
resourceGroup := s .ResourceGroup ()
563
563
if s .AzureCluster .Spec .NetworkSpec .PrivateDNSZoneResourceGroup != "" {
564
564
resourceGroup = s .AzureCluster .Spec .NetworkSpec .PrivateDNSZoneResourceGroup
@@ -1234,3 +1234,8 @@ func (s *ClusterScope) getLastAppliedSecurityRules(nsgName string) map[string]in
1234
1234
}
1235
1235
return lastAppliedSecurityRules
1236
1236
}
1237
+
1238
+ // IsHybridEnvironment returns true if the cluster is running on Azure Stack.
1239
+ func (s * ClusterScope ) IsHybridEnvironment () bool {
1240
+ return strings .EqualFold (s .Environment .Name , azure .StackCloudName )
1241
+ }
You can’t perform that action at this time.
0 commit comments