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

data_source "alicloud_cs_managed_kubernetes_clusters" not support getting state #6787

Open
willise opened this issue Dec 21, 2023 · 0 comments

Comments

@willise
Copy link

willise commented Dec 21, 2023

Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Terraform Version

Terraform v1.6.5
on linux_amd64

  • provider registry.terraform.io/hashicorp/alicloud v1.213.1

Your version of Terraform is out of date! The latest version
is 1.6.6. You can update by downloading from https://www.terraform.io/downloads.html

Affected Resource(s)

Please list the resources as a list, for example:

  • alicloud_cs_managed_kubernetes_clusters (data source)

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

data "alicloud_cs_managed_kubernetes_clusters" "k8s_clusters" {
  name_regex              = "tf-example"
}

Debug Output

data "alicloud_cs_managed_kubernetes_clusters" "k8s_clusters" {
    clusters       = [
        {
            availability_zone           = ""
            cluster_network_type        = ""
            connections                 = {}
            id                          = "xxx"
            image_id                    = ""
            key_name                    = ""
            log_config                  = []
            name                        = "tf-example"
            nat_gateway_id              = ""
            pod_cidr                    = ""
            security_group_id           = ""
            service_cidr                = ""
            slb_internet_enabled        = false
            vpc_id                      = ""
            vswitch_ids                 = []
            worker_auto_renew           = false
            worker_auto_renew_period    = 0
            worker_data_disk_category   = ""
            worker_data_disk_size       = 0
            worker_disk_category        = ""
            worker_disk_size            = 0
            worker_instance_charge_type = ""
            worker_instance_types       = []
            worker_nodes                = []
            worker_numbers              = []
            worker_period               = 0
            worker_period_unit          = ""
        },
    ]
    enable_details = false
    id             = "xxx"
    ids            = [
        "xxx",
    ]
    name_regex     = "tf-example"
    names          = [
        "tf-example",
    ]
}

Panic Output

No

Expected Behavior

Data resource can have k8s cluster state like "running" or "failed" shown.

Actual Behavior

Lack of k8s cluster state

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

Important Factoids

No

References

No

@ChenHanZhang

@willise willise changed the title data_source "alicloud_cs_managed_kubernetes_clusters" not support getting k8s cluster statet data_source "alicloud_cs_managed_kubernetes_clusters" not support getting k8s cluster state Dec 21, 2023
@willise willise changed the title data_source "alicloud_cs_managed_kubernetes_clusters" not support getting k8s cluster state data_source "alicloud_cs_managed_kubernetes_clusters" not support getting state Dec 21, 2023
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