hashicorp / terraform-provider-kubernetes-alpha

A Terraform provider for Kubernetes that uses dynamic resource types and server-side apply. Supports all Kubernetes resources.
https://registry.terraform.io/providers/hashicorp/kubernetes-alpha/latest
Mozilla Public License 2.0
490 stars 63 forks source link

`config_path` is not working as intended #253

Closed korve closed 3 years ago

korve commented 3 years ago

Terraform, Provider, Kubernetes versions

Terraform version: v1.0.0
Provider version: 0.5.0
Kubernetes version: 1.20.2

Affected Resource(s)

Terraform Configuration Files

Panic Output

https://gist.github.com/korve/6b5c229a2d2376badd8229bff254a71c

Steps to Reproduce

  1. terraform apply -->

Expected Behavior

The kubernetes-alpha provider should be able to load the kubeconfig from config_path.

Actual Behavior

The kubernetes-alpha provider ist not able to load the kubeconfig from config_path.

Important Factoids

The hashicorp/kubernetes provider has no problems loading the config file from the same path.

Community Note

korve commented 3 years ago

The problem was on my side. The kubeconfig was deleted after my Gitlab pipeline ran, but the tfstate was cached. So the provider didn't check if the local_file existed.