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
I'm encountering an issue with the civo_kubernetes_version data source in the Civo Terraform Provider version 1.1.3. When attempting to create a Kubernetes cluster with the Talos distribution, the Terraform plan fails due to an invalid Kubernetes version format. The error message is as follows:
The civo_kubernetes_version data source should return the label in the format 'talos-vX.Y.Z', consistent with the CLI output, to prevent version format errors during cluster creation.
Additional Information:
This discrepancy causes Terraform to fail with the following error:
Hi @brokedba, the error: Error: invalid Kubernetes version format: '1.27.0' for cluster type 'talos'. It appears that the data source is not retrieving the correct metadata, leading to this inconsistency. gets fixed by the last API change that we discussed in #365.
For the incorrect label from the datasource, I have this PR in place to correct that.
@Praveen005 that doesn't fix the version displayed in the data source . especially when users try to leverage the version from the data source instead of hardcoding it through a variable. I think it either should be talos.x.y.z or 1.x.y.z and not a mix.
[
{
"default":true,
"label":"v1.27.0",
"type":"talos",
"version":"1.27.0"<---- wrong , should be talos-v1.5.0forexampleasthereisstillconfusionbetweenlabelanversion
}
]
also, as future enhancement request it'd be nice to have the type field (.i.e stable) for a better/granular search .
Description
Description:
I'm encountering an issue with the civo_kubernetes_version data source in the Civo Terraform Provider version 1.1.3. When attempting to create a Kubernetes cluster with the Talos distribution, the Terraform plan fails due to an invalid Kubernetes version format. The error message is as follows:
Steps to Reproduce:
Define the civo_kubernetes_version data source with the following configuration:
Output the versions retrieved by the data source:
Run terraform plan.
Observed Behavior:
The output from the data source is:
Expected Behavior:
The civo_kubernetes_version data source should return the label in the format 'talos-vX.Y.Z', consistent with the CLI output, to prevent version format errors during cluster creation.
Additional Information:
This discrepancy causes Terraform to fail with the following error:
Acceptance Criteria
Please fix it as the current version of the data source will stay useless if left this way.
civo_kubernetes_version
data source returns the label attribute in the'talos-vX.Y.Z'
format for Talos clusters.The text was updated successfully, but these errors were encountered: