-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
RESTMapper client error when applying #203
Comments
try to run it with TF_LOG=trace and see if its using your vars for connection |
How can I tell? What should it be saying?
Enviado desde Outlook para iOS<https://aka.ms/o0ukef>
…________________________________
De: Alexander Chernov ***@***.***>
Enviado: Wednesday, November 6, 2024 3:41:33 PM
Para: alekc/terraform-provider-kubectl ***@***.***>
Cc: David Codesido ***@***.***>; Author ***@***.***>
Asunto: Re: [alekc/terraform-provider-kubectl] RESTMapper client error when applying (Issue #203)
try to run it with TF_LOG=trace and see if its using your vars for connection
—
Reply to this email directly, view it on GitHub<#203 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAE5MVO6WCJFISO5J57ITZ3Z7ITB3AVCNFSM6AAAAABRIWXUCOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJZHEZTIMRYGQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
What I can tell is that those variables are properly displayed when I run terraform console. I can see the values of all of them if that helps. Edit: This is extracted from the trace log:
I guess they are there :| |
There should be an error message somewhere. I am not familiar with Opentofu, so not sure if there are other requirements for this provider to work. You can also try to either replace variables with hardcoded values for test, or to configure official kubernetes provider, it follows the same config structure and if thats failing as well, it would mean you have config issue on your end |
I've been struggling to get a connection with an AKS cluster that is already created. I'm using the terraform outputs of the resources creating the cluster as input variables for the provider in another set of resources to create some manifests. This is becoming an excruciating task. Tried hashicorp/kubernetes, gavin's kubectl and this provider. All with no success. Now I'm stuck on this error:
╷
│ Error: Failed to get RESTMapper client
│
│ cannot create discovery client: no client config
The provider config looks like:
And that module does this:
Any idea what might be going on there?
The text was updated successfully, but these errors were encountered: