You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 and review the contribution guide to help.
Description
I have a use case where I need to retrieve the currently-installed versions of the AKS-managed Istio service mesh.
The data is present in the API (version 2023-10-01):
{// <snip>"type": "Microsoft.ContainerService/ManagedClusters","properties": {// <snip>"serviceMeshProfile": {"mode": "Istio","istio": {"components": {"ingressGateways": [{"mode": "Internal","enabled": true}]},"revisions": [// ######## this is what I need"asm-1-19"]}}},}
However, that data does not appear in the data source for azurerm_kubernetes_cluster in state file:
"resources": [
{
"mode":"data",
"type":"azurerm_kubernetes_cluster",
"name":"aks",
"provider":"provider[\"registry.terraform.io/hashicorp/azurerm\"]",
"instances": [
{
# <snip>"service_mesh_profile": [
{
"external_ingress_gateway_enabled":false,
"internal_ingress_gateway_enabled":true,
"mode":"Istio"# This is where I wish the "revisions" block was present
}
],
# <snip>
},
"sensitive_attributes": []
}
]
}
],
In goal state, I'd like to be able to calculate the newest revision installed (might need to be its own property, unless anyone knows the way to get the max() function to accept strings), so I can use that to label kubernetes_namespace_v1 objects based on the latest revision.
Is there an existing issue for this?
Community Note
Description
I have a use case where I need to retrieve the currently-installed versions of the AKS-managed Istio service mesh.
The data is present in the API (version
2023-10-01
):However, that data does not appear in the
data
source forazurerm_kubernetes_cluster
in state file:In goal state, I'd like to be able to calculate the newest revision installed (might need to be its own property, unless anyone knows the way to get the
max()
function to accept strings), so I can use that to labelkubernetes_namespace_v1
objects based on the latest revision.New or Affected Resource(s)/Data Source(s)
azurerm_kubernetes_cluster
Potential Terraform Configuration
References
relates to #24386?
The text was updated successfully, but these errors were encountered: