Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-henglu committed Jul 31, 2024
1 parent bb3b4bc commit 891e753
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,6 @@ func TestAccKubernetesCluster_enableNodePublicIP(t *testing.T) {
Config: r.enableNodePublicIPConfig(data),
Check: acceptance.ComposeTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
check.That(data.ResourceName).Key("default_node_pool.0.enable_node_public_ip").HasValue("true"),
),
},
data.ImportStep(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,6 @@ func resourceKubernetesClusterNodePoolSchema() map[string]*pluginsdk.Schema {
Optional: true,
ForceNew: true,
RequiredWith: func() []string {
if !features.FourPointOh() {
return []string{"enable_node_public_ip"}
}
return []string{"node_public_ip_enabled"}
}(),
},
Expand Down
4 changes: 0 additions & 4 deletions internal/services/containers/kubernetes_cluster_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -2663,10 +2663,6 @@ func resourceKubernetesClusterUpdate(d *pluginsdk.ResourceData, meta interface{}

hostEncryptionEnabled := "default_node_pool.0.host_encryption_enabled"
nodePublicIpEnabled := "default_node_pool.0.node_public_ip_enabled"
if !features.FourPointOhBeta() {
hostEncryptionEnabled = "default_node_pool.0.enable_host_encryption"
nodePublicIpEnabled = "default_node_pool.0.enable_node_public_ip"
}

cycleNodePoolProperties := []string{
"default_node_pool.0.name",
Expand Down
3 changes: 0 additions & 3 deletions internal/services/containers/kubernetes_nodepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,6 @@ func SchemaDefaultNodePool() *pluginsdk.Schema {
ForceNew: true,
ValidateFunc: publicipprefixes.ValidatePublicIPPrefixID,
RequiredWith: func() []string {
if !features.FourPointOh() {
return []string{"default_node_pool.0.enable_node_public_ip"}
}
return []string{"default_node_pool.0.node_public_ip_enabled"}
}(),
},
Expand Down

0 comments on commit 891e753

Please sign in to comment.