terraform-ibm-modules / terraform-ibm-cluster

Terraform modules to create and work with IBM Kubernetes cluster & Red Hat OpenShift Kubernetes cluster on IBM Cloud (Classic, VPC)
https://cloud.ibm.com/docs/containers
Apache License 2.0
11 stars 34 forks source link

Create a cluster without the patch version #80

Open lionelmace opened 2 years ago

lionelmace commented 2 years ago

Can you create a cluster by just mentioning the major and minor version such as 1.22 instead of the patch version such as 1.22.4?

That will prevent this issue:

Error: Request failed with status code: 400, ServerErrorResponse: {"incidentID":"f6264d99-19b6-4cdc-8090-6ae4d1298014,f6264d99-19b6-4cdc-8090-6ae4d1298014","code":"E0156","description":"A previous patch was specified. Only the most recent patch for a particular minor version can be specified during cluster create.","type":"Versions","recoveryCLI":"To list supported versions, run 'ibmcloud ks versions'."}
│ 
│   with module.vpc_kubernetes_cluster.ibm_container_vpc_cluster.cluster,
│   on .terraform/modules/vpc_kubernetes_cluster/modules/vpc-kubernetes/main.tf line 6, in resource "ibm_container_vpc_cluster" "cluster":
│    6: resource "ibm_container_vpc_cluster" "cluster" {
lionelmace commented 2 years ago

@kavya498 Any suggestion?