Skip to content

Commit

Permalink
Add precondition: Only one of `var.prefix,var.dns_prefix_private_clus…
Browse files Browse the repository at this point in the history
…ter` can be specified
  • Loading branch information
zioproto committed Sep 9, 2024
1 parent 7cf3feb commit 1118b4e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,10 @@ resource "azurerm_kubernetes_cluster" "main" {
condition = var.brown_field_application_gateway_for_ingress == null || var.green_field_application_gateway_for_ingress == null
error_message = "Either one of `var.brown_field_application_gateway_for_ingress` or `var.green_field_application_gateway_for_ingress` must be `null`."
}
precondition {
condition = var.prefix == null || var.dns_prefix_private_cluster == null
error_message = "Only one of `var.prefix,var.dns_prefix_private_cluster` can be specified."
}
}
}

Expand Down

0 comments on commit 1118b4e

Please sign in to comment.