rh-mobb / terraform-provider-azureopenshift

[Deprecated] Terraform provider for Azure Red Hat OpenShift. Please use Microsoft Official Provider https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/redhat_openshift_cluster
10 stars 10 forks source link

implement data source for ARO versions #7

Open paulczar opened 1 year ago

paulczar commented 1 year ago

need to allow user to get the current list of available installable versions from the ARO RP so that they can make valid choices about what version to install.

example az cli command

$ az aro get-versions --location "eastus"
[
  "4.10.40",
  "4.11.26"
]
paulczar commented 1 year ago

It would be great if you could specify a minor release and get back the full version CLI example

$ az aro get-versions --location "eastus" \
      --query "[?contains(@,'4.10')]" --output tsv
4.10.40