Skip to content

Commit c367f89

Browse files
committed
update aks api version
1 parent 941042d commit c367f89

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

locals.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
locals {
2-
# Centralize AzAPI version for AKS managedClusters operations
3-
aks_managed_clusters_api_version = "2025-09-01"
2+
# Centralize AzAPI version for AKS operations
3+
aks_api_version = "2025-09-01"
44
# Abstract if auto_scaler_profile_scale_down_delay_after_delete is not set or null we should use the scan_interval.
55
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
66
# automatic upgrades are either:

main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ resource "time_sleep" "interval_before_cluster_update" {
700700

701701
resource "azapi_update_resource" "aks_cluster_post_create" {
702702
resource_id = azurerm_kubernetes_cluster.main.id
703-
type = "Microsoft.ContainerService/managedClusters@${local.aks_managed_clusters_api_version}"
703+
type = "Microsoft.ContainerService/managedClusters@${local.aks_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@${local.aks_managed_clusters_api_version}"
732+
type = "Microsoft.ContainerService/managedClusters@${local.aks_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@${local.aks_managed_clusters_api_version}"
762+
type = "Microsoft.ContainerService/managedClusters/agentPools@${local.aks_api_version}"
763763
body = {
764764
properties = {
765765
localDNSProfile = {

0 commit comments

Comments
 (0)