Skip to content

Commit

Permalink
Bug fix for Kubernetes Cluster API server access profile (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
frasdav authored Jan 9, 2024
1 parent 1c8ac19 commit cbedf84
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/kubernetes-cluster/src/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ resource "azurerm_kubernetes_cluster" "main" {
tags = merge(var.tags, local.tags)
}

api_server_access_profile {
authorized_ip_ranges = var.authorized_ip_ranges
dynamic "api_server_access_profile" {
for_each = length(var.authorized_ip_ranges) > 0 ? [{}] : []

content {
authorized_ip_ranges = api_server_access_profile.value.authorized_ip_ranges
}
}

identity {
Expand Down

0 comments on commit cbedf84

Please sign in to comment.