Closed fredo838 closed 4 years ago
I also get the same error when using variable in the provider configuration with the following version:
I tested https://github.com/hashicorp/terraform-provider-kubernetes-alpha/pull/92, which fixes this issue. This can be closed when the PR gets merged.
I have the exact same problem, I've been using the hardcoded approach (pointing to my kubeconfig) but I have to create a new cluster.
provider "kubernetes-alpha" {
host = local.kube_connection.host
client_certificate = local.kube_connection.client_certificate
client_key = local.kube_connection.client_key
cluster_ca_certificate = local.kube_connection.cluster_ca_certificate
token = local.kube_connection.token
}
Produces the following error:
Error: rpc error: code = Unavailable desc = transport is closing
I can also confirm that #92 fixes the issue.
Hi,
Do we have any ETAs for the fix to release?
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error π€ π , please reach out to my human friends π hashibot-feedback@hashicorp.com. Thanks!
Terraform Version and Provider Version
Terraform v0.12.23
Kubernetes Version
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.5", GitCommit:"e0fccafd69541e3750d460ba0f9743b90336f24f", GitTreeState:"clean", BuildDate:"2020-04-16T11:44:03Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"17+", GitVersion:"v1.17.6-gke.11", GitCommit:"d20a4fc711a389212174a062bd295668089a110f", GitTreeState:"clean", BuildDate:"2020-06-15T17:56:39Z", GoVersion:"go1.13.9b4", Compiler:"gc", Platform:"linux/amd64"}
Error explained
terraform plan
fails using following code blockwhen I replace the variables in the second to last block with their hard coded values:
terraform plan
is working fine, same with uncommenting //config_path = "~/.kube/config". The issue is not present when using the "old" kubernetes provider (indicating this is not some kind of configuration issue but a bug.)The Error I get is: Error: rpc error: code = Unavailable desc = transport is closing, indicating misconfigured credentials, or sometimes I get a panic error:
Error: rpc error: code = Unavailable desc = transport is closing
I can provide a full log,
Steps to reproduct: 1) Create remote state 1 with an output 2) depend on it with terraform_remote_state in the provider block 3) terraform plan
I am guessing for some reason the values from data.terraform_remote_state are empty when the provider is initialized, which shouldn't happen (as the old kubernetes provider handles this case), I think.