Skip to content

Commit

Permalink
azurerm_kubernetes_cluster - private_cluster_public_fqdn_enabled is n…
Browse files Browse the repository at this point in the history
…o longer force new (#13413)

Fix #13099, to do in place update for private_cluster_public_fqdn_enabled
  • Loading branch information
hieumoscow authored Sep 23, 2021
1 parent 3478b45 commit 072d02f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/services/containers/kubernetes_cluster_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,6 @@ func resourceKubernetesCluster() *pluginsdk.Resource {
Type: pluginsdk.TypeBool,
Optional: true,
Default: false,
ForceNew: true,
},

"private_dns_zone_id": {
Expand Down Expand Up @@ -1225,6 +1224,11 @@ func resourceKubernetesClusterUpdate(d *pluginsdk.ResourceData, meta interface{}
}
}

if d.HasChange("private_cluster_public_fqdn_enabled") {
updateCluster = true
existing.ManagedClusterProperties.APIServerAccessProfile.EnablePrivateClusterPublicFQDN = utils.Bool(d.Get("private_cluster_public_fqdn_enabled").(bool))
}

if d.HasChange("auto_scaler_profile") {
updateCluster = true
autoScalerProfileRaw := d.Get("auto_scaler_profile").([]interface{})
Expand Down

0 comments on commit 072d02f

Please sign in to comment.