Skip to content

Commit

Permalink
aks: calc dns_service_ip and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
caruccio committed Oct 9, 2023
1 parent aac8cf3 commit 4d5a71d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion templates/aks/locals-aks.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
locals {
cluster_type = "aks"
cluster_type = "aks"
dns_service_ip = (var.service_cidr != null && var.dns_service_ip == null) ? cidrhost(var.service_cidr, 3) : var.dns_service_ip
}
4 changes: 2 additions & 2 deletions templates/aks/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "aks" {
source = "github.com/getupcloud/terraform-cluster-aks?ref=v2.0.5"
source = "github.com/getupcloud/terraform-cluster-aks?ref=v2.0.6"

# cluster basics
customer_name = var.customer_name
Expand Down Expand Up @@ -29,7 +29,7 @@ module "aks" {
client_id = var.client_id
client_secret = var.client_secret
docker_bridge_cidr = var.docker_bridge_cidr
dns_service_ip = var.dns_service_ip
dns_service_ip = local.dns_service_ip
identity_type = var.identity_type
identity_ids = var.identity_ids
identity_name = var.identity_name
Expand Down

0 comments on commit 4d5a71d

Please sign in to comment.