From af0e44bf13f181de6596c60d083f327ddccfad46 Mon Sep 17 00:00:00 2001 From: Yu Chin Koo <45642598+YuChinKoo@users.noreply.github.com> Date: Fri, 20 Sep 2024 08:48:08 -0400 Subject: [PATCH] Fix missing kube version for vpc clusters (#195) Co-authored-by: eugene-koo Co-authored-by: Hilton Lem <101275725+hiltol@users.noreply.github.com> --- internal/providers/terraform/ibm/container_vpc_cluster.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/providers/terraform/ibm/container_vpc_cluster.go b/internal/providers/terraform/ibm/container_vpc_cluster.go index 38d58df8015..037b6e33473 100644 --- a/internal/providers/terraform/ibm/container_vpc_cluster.go +++ b/internal/providers/terraform/ibm/container_vpc_cluster.go @@ -27,6 +27,9 @@ func newContainerVpcCluster(d *schema.ResourceData, u *schema.UsageData) *schema region := d.Get("region").String() kubeVersion := d.Get("kube_version").String() + if kubeVersion == "" { + kubeVersion = "4.15.25_openshift" + } flavor := d.Get("flavor").String() workerCount := d.Get("worker_count").Int()