File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11locals {
2+ # Centralize AzAPI version for AKS managedClusters operations
3+ aks_managed_clusters_api_version = " 2025-09-01"
24 # Abstract if auto_scaler_profile_scale_down_delay_after_delete is not set or null we should use the scan_interval.
35 auto_scaler_profile_scale_down_delay_after_delete = var. auto_scaler_profile_scale_down_delay_after_delete == null ? var. auto_scaler_profile_scan_interval : var. auto_scaler_profile_scale_down_delay_after_delete
46 # automatic upgrades are either:
Original file line number Diff line number Diff line change @@ -700,7 +700,7 @@ resource "time_sleep" "interval_before_cluster_update" {
700700
701701resource "azapi_update_resource" "aks_cluster_post_create" {
702702 resource_id = azurerm_kubernetes_cluster. main . id
703- type = " Microsoft.ContainerService/managedClusters@2024-02-01 "
703+ type = " Microsoft.ContainerService/managedClusters@${ local . aks_managed_clusters_api_version } "
704704 body = {
705705 properties = {
706706 kubernetesVersion = var.kubernetes_version
@@ -729,7 +729,7 @@ resource "azapi_update_resource" "aks_cluster_http_proxy_config_no_proxy" {
729729 count = can (var. http_proxy_config . no_proxy [0 ]) ? 1 : 0
730730
731731 resource_id = azurerm_kubernetes_cluster. main . id
732- type = " Microsoft.ContainerService/managedClusters@2024-02-01 "
732+ type = " Microsoft.ContainerService/managedClusters@${ local . aks_managed_clusters_api_version } "
733733 body = {
734734 properties = {
735735 httpProxyConfig = {
@@ -759,7 +759,7 @@ resource "azapi_update_resource" "aks_cluster_localdns_config" {
759759 count = var. localdns_config != null ? 1 : 0
760760
761761 resource_id = azurerm_kubernetes_cluster. main . id
762- type = " Microsoft.ContainerService/managedClusters@2024-02-01 "
762+ type = " Microsoft.ContainerService/managedClusters@${ local . aks_managed_clusters_api_version } "
763763 body = {
764764 properties = {
765765 localDNSConfig = {
You can’t perform that action at this time.
0 commit comments