Skip to content

Commit c86b2a1

Browse files
committed
remove incorrect precondition
1 parent a3ca137 commit c86b2a1

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

main.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -623,10 +623,6 @@ resource "azurerm_kubernetes_cluster" "main" {
623623
condition = var.network_policy != "azure" || var.network_plugin == "azure"
624624
error_message = "network_policy must be `azure` when network_plugin is `azure`"
625625
}
626-
precondition {
627-
condition = var.network_plugin_mode == "overlay" || var.net_profile_pod_cidr == "" || var.network_plugin != "azure"
628-
error_message = "`pod_cidr` and `azure` cannot be set together unless specifying `network_plugin_mode` to `overlay`"
629-
}
630626
precondition {
631627
condition = var.ebpf_data_plane != "cilium" || var.network_plugin == "azure"
632628
error_message = "When ebpf_data_plane is set to cilium, the network_plugin field can only be set to azure."

0 commit comments

Comments
 (0)