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 // tanzu-mission-control_cluster - Output parameter "attach_k8s_cluster" returns [] #434

Closed
timdzbank opened this issue Nov 7, 2024 · 2 comments
Labels
bug Bug

Comments

@timdzbank
Copy link

timdzbank commented Nov 7, 2024

Describe the bug

We are fetching the data from tanzu mission control to get the kubeconfig of a workload cluster as an output.
But the parameter "attach_k8s_cluster" is empty.

attach_k8s_cluster      = null

Every other parameter is filled with correct data e.g.

.....
      + name                    = "cluster-0001"
      + provisioner_name        = "abc"
      + ready_wait_timeout      = "120"
      + spec                    = [
          + {
              + cluster_group       = "abc"
              + image_registry      = ""
              + proxy               = ""
              + tkg_aws             = []
              + tkg_service_vsphere = []
              + tkg_vsphere         = []
            },
        ]
      + status                  = {
          + health                = "HEALTHY"
          + infra_provider        = "VMWARE_VSPHERE"
.....

We are running Tanzu Kubernetes cluster self managed in our DC.

Please assist.

Reproduction steps

  1. Create the data source "tanzu-mission-control_cluster"
data "tanzu-mission-control_cluster" "this" {
  management_cluster_name = "mgmt-clsuter"
  provisioner_name        = local.namespace
  name                    = "cluster-0001"
  ready_wait_timeout      = 120
}
  1. Terraform plan
  2. Terraform apply
  3. Output of attach_k8s_cluster is empty

Expected behavior

Output of attach_k8s_cluster is filled with the parameters of the docs

Additional context

No response

@timdzbank timdzbank added the bug Bug label Nov 7, 2024
@warroyo
Copy link
Contributor

warroyo commented Nov 11, 2024

The issue here is that this field is not documented properly and is only available for attached clusters. a new data source is needed for the tanzu_kubernetes_cluster type. closing this issue in favor of #443

@warroyo warroyo closed this as completed Nov 11, 2024
Copy link

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bug
Projects
None yet
Development

No branches or pull requests

2 participants