and where I try to use the kubctl on the provider:...
# kubernetes
b
and where I try to use the kubctl on the provider:
Copy code
const lkeProvider = new k8s.Provider("date", {
    kubeconfig: procCluster.kubeconfig
})
b
export the Kubeconfig and validate it's correct
b
oh I see it and and it’s correct but it’s base 64 encoded
I decoded it and I could see the yaml
Do i need to do anything to the output to convert it?
yup that did it
did this and it works
Copy code
const lkeProvider = new k8s.Provider("date", {
    kubeconfig: procCluster.kubeconfig.apply((t)  => {
        const bufferObj = Buffer.from(t, "base64");
        return bufferObj.toString("utf8");
    })
})