https://pulumi.com logo
#google-cloud
Title
# google-cloud
d

damp-magazine-59707

03/07/2024, 4:57 PM
i'm trying to figure out how to instantiate a kubernetes provider from a GCP Cluster object that we've also created in Pulumi, without needing to generate my own kubeconfig out-of-band. this answer references an output in the typescript API,
cluster.kubeConfigRaw
, that does not appear in the docs. if you ask the AI to rewrite the program in Python (which we use), it references a
kube_config
output that is also not documented, and, afaict, doesn't actually exist:
Copy code
AttributeError: 'Cluster' object has no attribute 'kube_config'
so it seems the AI is hallucinating. is this possible? can i take outputs from the
gcp.container.Cluster
object and directly instantiate a k8s provider?
g

glamorous-jelly-86558

03/07/2024, 4:58 PM
The Pulumi AI has been both helpful and extremely frustrating for my team to use. Lots and lots of hallucinations and code that is clearly broken once copied/pasted into the editor. 😕
d

dry-keyboard-94795

03/07/2024, 8:02 PM
d

damp-magazine-59707

03/07/2024, 8:03 PM
1. that's helpful, thanks! 2. wow that's ugly 😬
d

dry-keyboard-94795

03/07/2024, 8:05 PM
Yep. Personally, I make it with a normal dict, then yaml encode it
d

damp-magazine-59707

03/07/2024, 8:05 PM
that's definitely less ugly!
d

dry-keyboard-94795

03/07/2024, 8:06 PM
Feel free to upvote this issue: https://github.com/pulumi/pulumi-gcp/issues/1064