Skip to content

Commit

Permalink
revert change introduced by #361 (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb authored May 24, 2023
1 parent 44433c6 commit d4b203b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,6 @@ resource "azurerm_kubernetes_cluster" "main" {
condition = !(var.kms_enabled && var.identity_type != "UserAssigned")
error_message = "KMS etcd encryption doesn't work with system-assigned managed identity."
}
precondition {
condition = !var.public_network_access_enabled || try(contains(var.api_server_authorized_ip_ranges, "0.0.0.0/32"), false)
error_message = "When `public_network_access_enabled` is set to true, `0.0.0.0/32` must be added to `authorized_ip_ranges` in the `api_server_access_profile block` (https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster#public_network_access_enabled)."
}
}
}

Expand Down Expand Up @@ -698,7 +694,6 @@ resource "azurerm_role_assignment" "acr" {
# https://learn.microsoft.com/en-us/azure/aks/configure-kubenet#prerequisites
# https://learn.microsoft.com/en-us/azure/aks/configure-azure-cni#prerequisites
# https://github.com/Azure/terraform-azurerm-aks/issues/178

resource "azurerm_role_assignment" "network_contributor" {
for_each = var.create_role_assignment_network_contributor ? local.subnet_ids : []

Expand Down

0 comments on commit d4b203b

Please sign in to comment.