From 0f5f4148e6a40b7cbbee6f16a0f030f43a56b2bd Mon Sep 17 00:00:00 2001 From: Philipp Strube Date: Fri, 6 Dec 2024 07:53:34 +0100 Subject: [PATCH] Fix azure provider renamed attributes --- azurerm/_modules/aks/main.tf | 14 +++++++------- azurerm/_modules/aks/node_pool/main.tf | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/azurerm/_modules/aks/main.tf b/azurerm/_modules/aks/main.tf index 1caaa153..ed7c49a5 100644 --- a/azurerm/_modules/aks/main.tf +++ b/azurerm/_modules/aks/main.tf @@ -9,7 +9,7 @@ resource "azurerm_kubernetes_cluster" "current" { dns_prefix = var.dns_prefix sku_tier = var.sku_tier kubernetes_version = var.kubernetes_version - automatic_channel_upgrade = var.automatic_channel_upgrade + automatic_upgrade_channel = var.automatic_channel_upgrade role_based_access_control_enabled = true @@ -17,7 +17,7 @@ resource "azurerm_kubernetes_cluster" "current" { name = var.default_node_pool_name type = var.default_node_pool_type - enable_auto_scaling = var.default_node_pool_enable_auto_scaling + auto_scaling_enabled = var.default_node_pool_enable_auto_scaling # set min and max count only if autoscaling is _enabled_ min_count = var.default_node_pool_enable_auto_scaling ? var.default_node_pool_min_count : null @@ -41,9 +41,9 @@ resource "azurerm_kubernetes_cluster" "current" { network_plugin = var.network_plugin network_policy = var.network_policy - service_cidr = var.service_cidr - dns_service_ip = var.dns_service_ip - pod_cidr = var.network_plugin == "azure" ? null : var.pod_cidr + service_cidr = var.service_cidr + dns_service_ip = var.dns_service_ip + pod_cidr = var.network_plugin == "azure" ? null : var.pod_cidr } dynamic "identity" { @@ -76,8 +76,8 @@ resource "azurerm_kubernetes_cluster" "current" { } workload_autoscaler_profile { - keda_enabled = var.keda_enabled - vertical_pod_autoscaler_enabled = var.vertical_pod_autoscaler_enabled + keda_enabled = var.keda_enabled + vertical_pod_autoscaler_enabled = var.vertical_pod_autoscaler_enabled } tags = var.metadata_labels diff --git a/azurerm/_modules/aks/node_pool/main.tf b/azurerm/_modules/aks/node_pool/main.tf index 117d2ec8..f52c5f51 100644 --- a/azurerm/_modules/aks/node_pool/main.tf +++ b/azurerm/_modules/aks/node_pool/main.tf @@ -10,7 +10,7 @@ locals { resource "azurerm_kubernetes_cluster_node_pool" "current" { name = var.node_pool_name kubernetes_cluster_id = data.azurerm_kubernetes_cluster.current.id - enable_auto_scaling = var.enable_auto_scaling + auto_scaling_enabled = var.enable_auto_scaling max_count = var.max_count min_count = var.min_count node_count = var.node_count