It works fine with Pulumi CLI.
But the same did not work with pulumi-kubernetes-operator.
I included the same provider in a program/stack pair.
Here is the error i am getting.
pulumi:providers:kubernetes k8sProvider error: rpc error: code = Unknown desc = failed to parse kubeconfig: json: cannot unmarshal string into Go struct field ExecConfig.users.user.exec.args of type []string
CLI
Version 3.107.0
Go Version go1.22.0
Go Compiler gc
Plugins
NAME VERSION
kubernetes 4.9.0
yaml unknown
Host
OS amazon
Version 2
Arch x86_64
This project is written in yaml
No dependencies found
Pulumi locates its logs in /tmp by default
warning: Failed to get information about the current stack: No current stack
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).
thanks for the issue report @geowalrus4gh; it migyht be helpful to compare the version of the pulumi-yaml plugin that's being used locally vs in the operator.
What happened?
I declared a k8s provider in the Pulumi YAML as below.
It works fine with Pulumi CLI. But the same did not work with pulumi-kubernetes-operator. I included the same provider in a program/stack pair.
Here is the error i am getting.
pulumi:providers:kubernetes k8sProvider error: rpc error: code = Unknown desc = failed to parse kubeconfig: json: cannot unmarshal string into Go struct field ExecConfig.users.user.exec.args of type []string
Example
Extract from the the program/stack
Output of
pulumi about
CLI Version 3.107.0 Go Version go1.22.0 Go Compiler gc
Plugins NAME VERSION kubernetes 4.9.0 yaml unknown
Host OS amazon Version 2 Arch x86_64
This project is written in yaml
No dependencies found
Pulumi locates its logs in /tmp by default warning: Failed to get information about the current stack: No current stack
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).