Skip to content
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

add export/out for azurerm_kubernetes_cluster #6359

Closed
tezzigator opened this issue Apr 3, 2020 · 5 comments
Closed

add export/out for azurerm_kubernetes_cluster #6359

tezzigator opened this issue Apr 3, 2020 · 5 comments

Comments

@tezzigator
Copy link

tezzigator commented Apr 3, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

would be great (extermely useful!) to have azurerm_kubernetes_cluster export a list of the VM hostnames of all the VM hosts that were created as part of the cluster creation. This would be used for node affinity purposes.

New or Affected Resource(s)

azurerm_kubernetes_cluster

Potential Terraform Configuration

Where we'd be able to use this export/output:

output "vmhosts" {
    value = azurerm_kubernetes_cluster.vm_hosts
}
@tezzigator
Copy link
Author

tezzigator commented Apr 11, 2020

Another one: identityProfile.kubeletidentity.clientId is an attribute of the AKS cluster, but is currently not available to be exported as an output. This is another item that would be extremely useful as a terraform output. (yes in my case, for exact same purpose of using with AAD Pod Identity)

@syedhassaanahmed
Copy link

+1 to exporting identityProfile.kubeletidentity.clientId, it is needed when installing AAD Pod Identity on AKS Clusters with Managed Identity enabled.

@syedhassaanahmed
Copy link

After working with identityProfile.kubeletidentity block, I'd propose that identityProfile.kubeletidentity.objectId should be exported instead of .clientId as it makes subsequent role assignment easier and avoids an additional Azure AD lookup.

Furthermore the export should also happen on the AKS Data Source.

@tombuildsstuff
Copy link
Contributor

hi @tezzigator

Thanks for opening this issue :)

Taking a look through this appears to be a duplicate of #6217 - rather than having multiple issues open tracking the same thing I'm going to close this issue in favour of that one; would you mind subscribing to #6217 for updates?

Thanks!

@ghost
Copy link

ghost commented May 16, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators May 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants