This message was deleted.
# golang
s
This message was deleted.
b
you should be able to cast it with
cluster.Kubeconfig.(pulumi.StringOutput)
r
I tried and get this error: invalid operation: cluster.Kubeconfig (variable of type pulumi.AnyOutput) is not an interface
Looks like this might be similar to this issue: https://github.com/pulumi/pulumi/issues/6073
Here is my workaround:
cluster.Kubeconfig.ApplyT(func(v interface{}) string {
jsonBytes, _ := json.Marshal(v)
return string(jsonBytes)
}).(pulumi.StringOutput)