From b10038d05fb53af3f81c662e17246834cb6718d7 Mon Sep 17 00:00:00 2001 From: Ritika Patil Date: Wed, 2 Oct 2024 14:36:51 -0500 Subject: [PATCH] Terraform formatting updates --- main.tf | 12 +++++----- modules/aks_node_pool/main.tf | 42 +++++++++++++++++------------------ 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/main.tf b/main.tf index 76254c5b..b69863f9 100644 --- a/main.tf +++ b/main.tf @@ -193,12 +193,12 @@ module "node_pools" { for_each = var.node_pools - node_pool_name = each.key - aks_cluster_id = module.aks.cluster_id - vnet_subnet_id = module.vnet.subnets["aks"].id - machine_type = each.value.machine_type - fips_enabled = var.fips_enabled - os_disk_size = each.value.os_disk_size + node_pool_name = each.key + aks_cluster_id = module.aks.cluster_id + vnet_subnet_id = module.vnet.subnets["aks"].id + machine_type = each.value.machine_type + fips_enabled = var.fips_enabled + os_disk_size = each.value.os_disk_size auto_scaling_enabled = each.value.min_nodes == each.value.max_nodes ? false : true node_count = each.value.min_nodes min_nodes = each.value.min_nodes == each.value.max_nodes ? null : each.value.min_nodes diff --git a/modules/aks_node_pool/main.tf b/modules/aks_node_pool/main.tf index 0bc20128..24b0106f 100755 --- a/modules/aks_node_pool/main.tf +++ b/modules/aks_node_pool/main.tf @@ -14,17 +14,17 @@ resource "azurerm_kubernetes_cluster_node_pool" "autoscale_node_pool" { proximity_placement_group_id = var.proximity_placement_group_id == "" ? null : var.proximity_placement_group_id vm_size = var.machine_type os_disk_size_gb = var.os_disk_size - os_type = var.os_type - auto_scaling_enabled = var.auto_scaling_enabled - node_public_ip_enabled = var.node_public_ip_enabled - node_count = var.node_count - max_count = var.max_nodes - min_count = var.min_nodes - max_pods = var.max_pods - node_labels = var.node_labels - node_taints = var.node_taints - orchestrator_version = var.orchestrator_version - tags = var.tags + os_type = var.os_type + auto_scaling_enabled = var.auto_scaling_enabled + node_public_ip_enabled = var.node_public_ip_enabled + node_count = var.node_count + max_count = var.max_nodes + min_count = var.min_nodes + max_pods = var.max_pods + node_labels = var.node_labels + node_taints = var.node_taints + orchestrator_version = var.orchestrator_version + tags = var.tags lifecycle { ignore_changes = [node_count] @@ -42,14 +42,14 @@ resource "azurerm_kubernetes_cluster_node_pool" "static_node_pool" { proximity_placement_group_id = var.proximity_placement_group_id == "" ? null : var.proximity_placement_group_id vm_size = var.machine_type os_disk_size_gb = var.os_disk_size - os_type = var.os_type - auto_scaling_enabled = var.auto_scaling_enabled - node_count = var.node_count - max_count = var.max_nodes - min_count = var.min_nodes - max_pods = var.max_pods - node_labels = var.node_labels - node_taints = var.node_taints - orchestrator_version = var.orchestrator_version - tags = var.tags + os_type = var.os_type + auto_scaling_enabled = var.auto_scaling_enabled + node_count = var.node_count + max_count = var.max_nodes + min_count = var.min_nodes + max_pods = var.max_pods + node_labels = var.node_labels + node_taints = var.node_taints + orchestrator_version = var.orchestrator_version + tags = var.tags }