Hi everyone! Is there a way to query an existing k...
# general
r
Hi everyone! Is there a way to query an existing kubernetes object programmatically within my Python program? I've seen Pulumi Query but that's a separate CLI tool
g
have you tried to use Python kubernetes client? you can mix different libraries with pulumi in my project I use pulumi and boto3 for maintaining AWS infrastructure and it works just fine
r
Hey, thanks for the reply! I tried that, the problem is that I couldn't pass the client the kubeconfig that I generate from the cluster object because it's of type Output. Do you know of any workarounds?
g
check this doc: https://www.pulumi.com/docs/concepts/inputs-outputs/
pulumi.Output.all
might be useful in your case