Pull Request Title: Add Conditional Support for System Assigned Identity and Service Principal in AKS Module
Pull Request URL: PR Link
Opened By: githubofkrishnadhas
Merged: True
Description: Introduced a dynamic block to the Kubernetes module to conditionally configure either a System Assigned Managed Identity or a Service Principal for the AKS cluster based on the identity_or_sp variable.
-
If authentication_method is set to "identity", the module configures a SystemAssigned managed identity.
-
If authentication_method is set to "service_principal", the module configures a service_principal block using the provided client_id and client_secret.
-
client_id and client_secret are pulled from keyvault using data "azurerm_keyvault_secret" blocks
-
on using identity, Only SystemAssigned managed identity is used,
Not user assigned managed identity
This update ensures flexibility in choosing the authentication method for the AKS cluster.
Created At: 2024-12-28T09:21:08Z
Closed & Merged At: 2024-12-28T09:23:56Z
Assignees: githubofkrishnadhas
Total Commits: 9
What's Changed
- Add Conditional Support for System Assigned Identity and Service Principal in AKS Module by @githubofkrishnadhas in #15
Full Changelog: v1.5.1...v1.5.2