I had similar error with c# & aks, the problem I had was with the way I parse kubeconfig, it expects a json object and I was passing the config file as string, took me sometime to resolve it correctly though
🙌 1
t
thankful-fall-44419
02/12/2024, 8:40 PM
Moved ahead.
thankful-fall-44419
02/12/2024, 8:42 PM
I can now create the K8 Provider. I can see it on the Pulumi Stack web page, but I am now facing an
error: rpc error: code = Unknown desc = failed to parse kubeconfig: illegal base64 data at input byte 8
whilst trying to deploy an Helm Chart.
i
important-market-91978
02/12/2024, 11:00 PM
Yes, you would need to decode the kubeconfig, so the object shall be decoded, pesudo code would be
Var encodedkubeconfig=creds.kubeconfig[0]. value
Var decoded= Encoding.GetString(Convert.FromBase64(encodedkubeconfig))
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.