Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to use data source ibm_container_cluster for existing lite IKS #2300

Closed
eiri opened this issue Mar 2, 2021 · 0 comments
Closed

Comments

@eiri
Copy link
Contributor

eiri commented Mar 2, 2021

Creating a data source ibm_container_cluster for existing lite IKS throws an error.

Terraform Version

$ terraform -v
Terraform v0.14.7
+ provider registry.terraform.io/hashicorp/kubernetes v2.0.2
+ provider registry.terraform.io/ibm-cloud/ibm v1.20.1

Affected Resource(s)

  • ibm_container_cluster

Terraform Configuration Files

terraform {
  required_providers {
    ibm = {
      source  = "IBM-Cloud/ibm"
      version = "~> 1.20.0"
    }
  }
}

variable "ibmcloud_api_key" {}

provider "ibm" {
  ibmcloud_api_key = var.ibmcloud_api_key
  region           = "us-south"
}

data "ibm_container_cluster" "sandbox" {
  name = "sandbox"
}

Expected Behavior

Command terraform plan should work correctly.

Actual Behavior

Command terraform plan throws an error "The specified cluster is a free cluster. Ingress is not supported for free clusters."

I believe the reason for this issue is that the error message on missing alb changed, so while provider tried to skip an error message "The specified cluster is a lite cluster." the actual error message now has a word "free" instead of "lite".

Steps to Reproduce

Both terraform plan or terraform refresh reproduce the issue.

kavya498 added a commit to kavya498/terraform-provider-ibm that referenced this issue Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant