-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oidc_issuer_enabled
must be set to true
to enable Azure AD Worklo…
#377
oidc_issuer_enabled
must be set to true
to enable Azure AD Worklo…
#377
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @zioproto thanks for opening this pr, we need merge this branch to the latest main branch to get version-upgrade test work, would you please update your branch and try again? Thanks!
ab1e4aa
to
9c23b45
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @zioproto for the update, one comment.
main.tf
Outdated
@@ -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 : true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we simplify this expression to?:
condition = !var.workload_identity_enabled || var.oidc_issuer_enabled
9c23b45
to
f482eab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @zioproto for the update, LGTM! 🚀
Fixes the following error: