siderolabs / terraform-provider-talos

Mozilla Public License 2.0
117 stars 15 forks source link

Get latest stable version from talos_image_factory_versions #179

Closed NPastorale closed 1 month ago

NPastorale commented 1 month ago

When using the example code for talos_image_factory_versions it is presently returning v1.8.0-alpha.1 as it is the latest available version.

It would be useful to have a filter or some way of signaling the data source to only return stable versions, i.e. v1.7.5 as of this moment. The current implementation makes it imposible to programatically get it, as the number of alpha version availables will change with time.

For the sake of completion, this is a relevant extract from the current output of data.talos_image_factory_versions.this.talos_versions

"v1.6.0",
"v1.6.1",
"v1.6.2",
"v1.6.3",
"v1.6.4",
"v1.6.5",
"v1.6.6",
"v1.6.7",
"v1.6.8",
"v1.7.0",
"v1.7.1",
"v1.7.2",
"v1.7.3",
"v1.7.4",
"v1.7.5",
"v1.8.0-alpha.0",
"v1.8.0-alpha.1"
smira commented 1 month ago

@frezbo , I think this makes sense?