Skip to content

Commit b0705e3

Browse files
authored
Fix: Fetch correct label from kubernetes version datasource for talos cluster (#367)
1 parent 6deef19 commit b0705e3

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Diff for: civo/kubernetes/datasource_kubernetes_version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func flattenKubernetesVersion(version, _ interface{}, _ map[string]interface{})
4444

4545
flattenedVersion := map[string]interface{}{}
4646
flattenedVersion["version"] = s.Version
47-
flattenedVersion["label"] = fmt.Sprintf("v%s", s.Version)
47+
flattenedVersion["label"] = s.Label
4848
flattenedVersion["type"] = s.ClusterType
4949
flattenedVersion["default"] = s.Default
5050
return flattenedVersion, nil

Diff for: go.sum

-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmms
1212
github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA=
1313
github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8=
1414
github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
15-
github.com/civo/civogo v0.3.84 h1:jf5IT7VJFPaReO6g8B0zqKhsYCIizaGo4PjDLY7Sl6Y=
16-
github.com/civo/civogo v0.3.84/go.mod h1:7UCYX+qeeJbrG55E1huv+0ySxcHTqq/26FcHLVelQJM=
17-
github.com/civo/civogo v0.3.85 h1:rXRbDT9B60Ocp/IxAoAs90yAJog2la1MajQqgXETxd4=
18-
github.com/civo/civogo v0.3.85/go.mod h1:7UCYX+qeeJbrG55E1huv+0ySxcHTqq/26FcHLVelQJM=
1915
github.com/civo/civogo v0.3.89 h1:g+I4NGVa5t0L2Z9+QbnEAqxE/3OCDUYvepje3oUkKVo=
2016
github.com/civo/civogo v0.3.89/go.mod h1:7UCYX+qeeJbrG55E1huv+0ySxcHTqq/26FcHLVelQJM=
2117
github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs=

0 commit comments

Comments
 (0)