Skip to content

Commit

Permalink
oidc_issuer_enabled must be set to true to enable Azure AD Worklo…
Browse files Browse the repository at this point in the history
…ad Identity (#377)
  • Loading branch information
zioproto authored May 31, 2023
1 parent 1fca004 commit 17639f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,10 @@ resource "azurerm_kubernetes_cluster" "main" {
condition = !(var.kms_enabled && var.identity_type != "UserAssigned")
error_message = "KMS etcd encryption doesn't work with system-assigned managed identity."
}
precondition {
condition = !var.workload_identity_enabled || var.oidc_issuer_enabled
error_message = "`oidc_issuer_enabled` must be set to `true` to enable Azure AD Workload Identity"
}
}
}

Expand Down

0 comments on commit 17639f0

Please sign in to comment.