https://pulumi.com logo
l

limited-rainbow-51650

06/21/2021, 10:56 AM
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

billowy-army-68599

06/21/2021, 1:19 PM
they're not defined in Pulumi?
l

limited-rainbow-51650

06/21/2021, 1:53 PM
yes, cluster is defined in another stack.
b

billowy-army-68599

06/21/2021, 1:55 PM
yeah get cluster is your best bet I think
šŸ‘šŸ¼ 1
l

limited-rainbow-51650

06/21/2021, 5:45 PM
@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.