Skip to content

Commit

Permalink
update due code review
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Dec 8, 2023
1 parent 070aa4c commit bc905a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ resource "azurerm_kubernetes_cluster" "main" {
}
precondition {
condition = var.brown_field_application_gateway_for_ingress == null || var.green_field_application_gateway_for_ingress == null
error_message = "Either one of `var.existing_application_gateway_for_ingress` or `var.new_application_gateway_for_ingress` must be `null`."
error_message = "Either one of `var.brown_field_application_gateway_for_ingress` or `var.green_field_application_gateway_for_ingress` must be `null`."
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,10 @@ variable "green_field_application_gateway_for_ingress" {
* `subnet_cidr` - (Optional) The subnet CIDR to be used to create an Application Gateway, which in turn will be integrated with the ingress controller of this Kubernetes Cluster.
* `subnet_id` - (Optional) The ID of the subnet on which to create an Application Gateway, which in turn will be integrated with the ingress controller of this Kubernetes Cluster.
EOT
validation {
condition = var.green_field_application_gateway_for_ingress == null ? true : (can(coalesce(var.green_field_application_gateway_for_ingress.subnet_id, var.green_field_application_gateway_for_ingress.subnet_cidr)))
error_message = "One of `subnet_cidr` and `subnet_id` must be specified."
}
}

variable "http_application_routing_enabled" {
Expand Down

0 comments on commit bc905a5

Please sign in to comment.