Hello, on GCP, we have GKE clusters with and witho...
# google-cloud
l
Hello, on GCP, we have GKE clusters with and without (legacy) Workload Identity enabled. We want to parameterize our code for this, but what is the most suitable way to find out if Workload Identity is enabled or not? Is
getCluster
my best option? https://www.pulumi.com/docs/reference/pkg/gcp/container/getcluster/
b
they're not defined in Pulumi?
l
yes, cluster is defined in another stack.
b
yeah get cluster is your best bet I think
šŸ‘šŸ¼ 1
l
@billowy-army-68599 a
get
function returns a Promise. Any idea how to prevent a chain of callbacks from then on?
Arrghhh
Copy code
Error: invocation of gcp:container/getCluster:getCluster returned an error: unknown Invoke type "gcp:container/getCluster:getCluster"
If Iā€™m not providing all three arguments to
getCluster
, I get an error like in my previous message.