banzaicloud/terraform-provider-k8s

An argument named "kubeconfig" is not expected here

MPV opened this issue · 2 comments

MPV commented

Describe the bug

I'm not able to configure this provider using the kubeconfig attribute without getting this error:

Steps to reproduce the issue:

provider "k8s" {
  kubeconfig = local_file.kubeconfig.filename
}
$ terraform validate

Error: Unsupported argument

  on providers.tf line 54, in provider "k8s":
  54:   kubeconfig = local_file.kubeconfig.filename

An argument named "kubeconfig" is not expected here.

Expected behavior

No errors.

Additional context

Using version 0.7.0:

https://github.com/banzaicloud/terraform-provider-k8s/releases/download/v0.7.0/terraform-provider-k8s_0.7.0_darwin_amd64.tar.gz

MPV commented

Ah, looking at the code now, I see that this provider supports all the regular kubernetes provider configs, nice!

https://github.com/banzaicloud/terraform-provider-k8s/blob/v0.7.0/k8s/provider.go#L22-L106

Then it's just the documentation/README here that is out-of-date. 😊

Feel free to close this if you prefer.

Hi @MPV, thanks for reporting, I will leave it open and fix the docs, thank you!