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
but the result was that is does not sort numerically:
data "rhcs_versions" "all" {
items = [
{
id = "openshift-v4.9.59"
name = "4.9.59"
},
{
id = "openshift-v4.9.19"
name = "4.9.19"
},
{
id = "openshift-v4.8.57"
name = "4.8.57"
},
{
id = "openshift-v4.17.4"
name = "4.17.4"
},
{
id = "openshift-v4.17.3"
name = "4.17.3"
},
....
{
id = "openshift-v4.10.12"
name = "4.10.12"
},
{
id = "openshift-v4.10.11"
name = "4.10.11"
},
{
id = "openshift-v4.10.10"
name = "4.10.10"
},
]
order = "id desc"
}
So this object is pointless to get for example a latest version possible version.
It would also nice if the object contains some attributes like: latest, latest_minor (to put into rhcs_cluster_rosa_hcp.upgrade_acknowledgements_for field)
The text was updated successfully, but these errors were encountered:
As of terraform-redhat/rhcs v1.6.6 there is no example for rhcs_versions data source.
Per digging in the source code:
https://github.com/openshift-online/ocm-sdk-go/blob/main/clustersmgmt/v1/versions_client.go#L103-L145
I was able to create:
but the result was that is does not sort numerically:
So this object is pointless to get for example a latest version possible version.
It would also nice if the object contains some attributes like: latest, latest_minor (to put into rhcs_cluster_rosa_hcp.upgrade_acknowledgements_for field)
The text was updated successfully, but these errors were encountered: