Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Can we use the AKS resource's attributes instead of using aks_msi_client_id_query.sh? #1441

Open
jpflueger opened this issue Sep 17, 2020 · 1 comment
Labels
question Further information is requested

Comments

@jpflueger
Copy link
Contributor

Topic:
AKS module's output

Question:
The aks_msi_client_id_query.sh script queries information that is already provided via the azurerm_kubernetes_cluster resource attributes. Would you accept a pull request that uses modifies the aks module to use those attributes and removes the dependency on the script?

Script -> Attribute Mapping

aks_msi_client_id_query.sh attribute azurerm_kubernetes_cluster attribute Comment
msi_client_id identity.principal_id The term "MSI" has been replaced by "Managed identity", would it be acceptable for a possible rename to avoid confusion?
kubelet_client_id kubelet_identity.object_id The name of this property suggests it is the kubelet's client id but in the current script it is actually the kubelet managed identity's object_id
kubelet_id kubelet_identity.user_assigned_identity_id In the script this field and kubelet_resource_id are mapped to the same value
kubelet_resource_id kubelet_identity.user_assigned_identity_id In the script this field and kubelet_id are mapped to the same value
node_resource_group node_resource_group

Suggestion
I would suggest that we just export the following attributes directly from the azurerm_kubernetes_cluster resource:

cc: @jmspring @andrebriggs

@jpflueger jpflueger added the question Further information is requested label Sep 17, 2020
@jmspring
Copy link
Contributor

jmspring commented Sep 17, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants