civo / terraform-provider-civo

Terraform Civo provider
https://www.civo.com
Mozilla Public License 2.0
71 stars 56 forks source link

Fix: Enhance Kubernetes version handling #329

Closed Praveen005 closed 2 months ago

Praveen005 commented 3 months ago

This PR fixes #327

In Here, I:

Praveen005 commented 3 months ago

Hi @uzaxirr

I have removed the min_kubernetes_flag and other related codes. Now I am just verifying the version string and have added stable & development version in the error message.

One caveat, talos doesn't have any development version and hence have two different error messages for k3s & talos.

Here are the test results:

Screenshot 2024-08-20 201804 Screenshot 2024-08-20 201745
Screenshot 2024-08-20 201916 Screenshot 2024-08-20 201928
Screenshot 2024-08-20 202026 Screenshot 2024-08-20 202016
image Screenshot 2024-08-20 202118