[BUG] Inconsistent Kubernetes Version Handling for "talos" Cluster Type in Terraform Provider after 1st apply [400 bad request] cluster is already at the requested version 1.x.z #365
Labels
bug
Something isn't working
Description
I. What's the issue?
There is a bug in the Civo Terraform provider (version
1.1.4
or lower) related to the kubernetes_version parameter for the "talos" cluster type.1. Initial Deployment:
Specifying
kubernetes_version = "talos-v1.5.0"
successfully deploys the cluster.2. Subsequent apply Operations:
When making changes (e.g., adding nodes) and running terraform apply, the process fails with the following error:
If I comment
kubernetes_version
. Removing the kubernetes_version line results in another error:Root Cause:
There appears to be a mismatch between the format required for the initial deployment (talos-vX.Y.Z) and the API's metadata response (1.27.0).
Impact:
This results in an inability to apply any updates to the cluster. The only workaround is to destroy and recreate the cluster, which is inefficient and frustrating.
2. Steps to reproduce it
The cluster deploys successfully.
result > The error regarding the invalid Kubernetes version appears.
result > The second error occurs, preventing updates.
3. Additional information
Related Issue: This behavior seems similar to the data source issue reported in #363.
Acceptance Criteria
Provide a Fix:
Ensure that the Terraform provider properly handles the Kubernetes version for "talos" clusters across all operations (apply, plan, and destroy).
Update the control logic to:
talos-vX.Y.Z
format consistently.The text was updated successfully, but these errors were encountered: