kubernetes.NewProvider
cannot parse well formatted kubeconfig file string for GKE
#1530
Labels
area/examples
awaiting-feedback
Blocked on input from the author
kind/bug
Some behavior is incorrect or out of spec
What happened?
I'm trying to create a GKE cluster, then parse a kubeconfig in order to then manage the applications on that cluster from pulumi, however pulumi refuses to parse the kubeconfig string specified in the example here correctly.
The
users[0].user.exec
entry seems to be causing problems. I have copied the string directly from the example repo, and ensured that I have used spaces for indentation rather than tabs, which produces the following error:error: rpc error: code = Unknown desc = failed to parse kubeconfig: yaml: line 19: found character that cannot start any token
.I have also passed the string through various yaml validators and not seen any errors either.
Example
I have provided by code for completeness, however the example on the repo here doesn't work either.
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: