elegant-window-55250
12/06/2021, 6:01 PMconfigured Kubernetes cluster is unreachable: failed to parse kubeconfig data in `kubernetes:config:kubeconfig`- couldn't get version/kind; json parse error: json: cannot unmarshal string into Go value of type struct { APIVersion string "json:\"apiVersion,omitempty\""; Kind string "json:\"kind,omitempty\"" }
This happened after doing some refactoring (deleting >25 resources) in our cluster. Now, I'm not sure how I'm going to continue forward. I can confirm with the same credentials, I can access the cluster using kubectl
. I can also see the resources that Pulumi is trying to delete. There's also no other changes than naming of resources. Can someone point me in the right/a direction?kubeconfig
is, which is probably caused by the fact that we configure default namespace
. The kubeconfig
variable is set to the wrong path in the state file.
Hypothesis: This causes Pulumi look in the wrong path for credentials, even though correct credentials are passed. The credentials are never updated, because it fails on something else.billowy-army-68599
12/06/2021, 6:43 PMelegant-window-55250
12/06/2021, 6:44 PMkubeconfig
manually to ~/.kube/config
in the state file, I'm able to apply stuff.billowy-army-68599
12/06/2021, 6:45 PMelegant-window-55250
12/06/2021, 6:46 PMkubeconfig
kubeconfig
is always in the same path, since we're always up-ing from Github Actions anyway.billowy-army-68599
12/06/2021, 6:50 PMelegant-window-55250
12/06/2021, 6:50 PM