Skip to content

Enable App Routing #695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed

Conversation

meecethereese
Copy link
Contributor

Added the web_app_routing field to the terraform modules for the aks config. This will allow us to create aks clusters by declaring web_app_routing in the scenario tfvars file.

@Copilot Copilot AI review requested due to automatic review settings June 4, 2025 22:28
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables the use of web app routing when creating AKS clusters by adding a new optional variable in the Terraform module configuration.

  • Introduces the web_app_routing variable in both azure/variables.tf and azure/aks/variables.tf.
  • Adds a dynamic block in azure/aks/main.tf to apply the web_app_routing configuration to the azurerm_kubernetes_cluster resource.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
modules/terraform/azure/variables.tf Added web_app_routing field to the aks_config_list variable.
modules/terraform/azure/aks/variables.tf Added web_app_routing field to the aks_config variable object.
modules/terraform/azure/aks/main.tf Added a dynamic block to conditionally configure web_app_routing.
Comments suppressed due to low confidence (2)

modules/terraform/azure/variables.tf:188

  • Consider adding a descriptive comment for the new 'web_app_routing' variable to clarify its purpose and expected format.
web_app_routing = optional(object({

modules/terraform/azure/aks/main.tf:85

  • [nitpick] Consider adding an inline comment to explain the dynamic block for 'web_app_routing', which will help future maintainers understand its conditional usage.
dynamic "web_app_routing" {

dynamic "web_app_routing" {
for_each = try(var.aks_config.web_app_routing != null ? [var.aks_config.web_app_routing] : [])
content {
dns_zone_ids = var.aks_config.web_app_routing.dns_zone_ids
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dns_zone_ids = var.aks_config.web_app_routing.dns_zone_ids
dns_zone_ids = web_app_routing.value.dns_zone_ids

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants