Skip to content

oidc_issuer_enabled must be set to true to enable Azure AD Worklo…#377

Merged
lonegunmanb merged 1 commit intoAzure:mainfrom
zioproto:precondition-workload-identity
May 31, 2023
Merged

oidc_issuer_enabled must be set to true to enable Azure AD Worklo…#377
lonegunmanb merged 1 commit intoAzure:mainfrom
zioproto:precondition-workload-identity

Conversation

@zioproto
Copy link
Copy Markdown
Contributor

Fixes the following error:

│ Error: `oidc_issuer_enabled` must be set to `true` to enable Azure AD Workload Identity
│
│   with module.aks.azurerm_kubernetes_cluster.main,
│   on .terraform/modules/aks/main.tf line 17, in resource "azurerm_kubernetes_cluster" "main":
│   17: resource "azurerm_kubernetes_cluster" "main" {

Copy link
Copy Markdown
Member

@lonegunmanb lonegunmanb left a 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!

@zioproto zioproto force-pushed the precondition-workload-identity branch from ab1e4aa to 9c23b45 Compare May 26, 2023 12:23
@zioproto zioproto temporarily deployed to acctests May 29, 2023 06:07 — with GitHub Actions Inactive
Copy link
Copy Markdown
Member

@lonegunmanb lonegunmanb left a 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.

Comment thread main.tf Outdated
error_message = "KMS etcd encryption doesn't work with system-assigned managed identity."
}
precondition {
condition = var.workload_identity_enabled ? var.oidc_issuer_enabled : true
Copy link
Copy Markdown
Member

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

@zioproto zioproto force-pushed the precondition-workload-identity branch from 9c23b45 to f482eab Compare May 30, 2023 09:59
@zioproto zioproto temporarily deployed to acctests May 31, 2023 02:47 — with GitHub Actions Inactive
Copy link
Copy Markdown
Member

@lonegunmanb lonegunmanb left a 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! 🚀

@lonegunmanb lonegunmanb merged commit 17639f0 into Azure:main May 31, 2023
skolobov pushed a commit to skolobov/terraform-azurerm-aks that referenced this pull request Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants