Skip to content

Commit

Permalink
Fix AuthorizedIPRanges diff
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Jun 16, 2023
1 parent e47c7e3 commit ba0a41c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion azure/services/managedclusters/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,14 @@ func (s *ManagedClusterSpec) Parameters(ctx context.Context, existing interface{

if s.APIServerAccessProfile != nil {
managedCluster.APIServerAccessProfile = &containerservice.ManagedClusterAPIServerAccessProfile{
AuthorizedIPRanges: &s.APIServerAccessProfile.AuthorizedIPRanges,
EnablePrivateCluster: s.APIServerAccessProfile.EnablePrivateCluster,
PrivateDNSZone: s.APIServerAccessProfile.PrivateDNSZone,
EnablePrivateClusterPublicFQDN: s.APIServerAccessProfile.EnablePrivateClusterPublicFQDN,
}

if len(s.APIServerAccessProfile.AuthorizedIPRanges) > 0 {
managedCluster.APIServerAccessProfile.AuthorizedIPRanges = &s.APIServerAccessProfile.AuthorizedIPRanges
}
}

if s.OutboundType != nil {
Expand Down

0 comments on commit ba0a41c

Please sign in to comment.