gavinbunney / terraform-provider-kubectl

Terraform provider to handle raw kubernetes manifest yaml files
https://registry.terraform.io/providers/gavinbunney/kubectl
Mozilla Public License 2.0
626 stars 107 forks source link

Trouble importing resources #278

Closed razahuss02 closed 1 year ago

razahuss02 commented 1 year ago

I created a module to create some clusters. I've tested the module out by creating some test clusters and it worked. However, when I try to import some resources, I get an Unauthorized error.

│ Error: failed to create kubernetes rest client for import of resource: apiVersion/v1beta1 kind cluster-name Unauthorized
│ apiVersion: <>/v1beta1
│ kind: <>
│ metadata:
│   namespace: namespace
│   name: cluster-name
│  &{map[apiVersion:<>/v1beta1 kind:<> metadata:map[name:name namespace:namespace]]}
│
│
╵