terraform-provider-talos
terraform-provider-talos copied to clipboard
enhancement: treat talos_version without prefix v as valid version
Provider version: 0.2.0-beta.0
kubernetes_version
and helm chart version both can be specified without the prefix v: 1.27.1, 1.13.2, but when it comes to talos_version
, "1.4.0" is treated as invalid, changed to "v1.4.0" fixed that error
resource "talos_machine_secrets" "default" {
talos_version = "1.4.0"
}
╷
│ Error: Invalid version
│
│ 1: resource "talos_machine_secrets" "default" {
│
│ error parsing version "1.4.0"
╵
this was following the same flow as the cli:
❯ talosctl gen secrets --talos-version 1.2
invalid talos-version: error parsing version "1.2"
We can probably still fix this in the TF provider, probably before 0.2.0
We can probably still fix this in the TF provider, probably before 0.2.0
I think it would be better to also fix it in talosctl and perhaps talos sdk.