has anyone successfully set up an AKS cluster with...
# azure
l
has anyone successfully set up an AKS cluster with workload identity for pods? Looks like one needs to access the "oidcIssuerProfile.issuerUrl" attribute of the cluster in order to build identities, but from what I can see Pulumi doesn't expose that. Anyone found a way around that?
ended up hacking it with:
Copy code
var oidcCommand = Output.All(cluster.Name, clusterResourceGroup.Name)
            .Apply(t => $"az aks show --name {t[0]} --resource-group {t[1]} --query \"oidcIssuerProfile.issuerUrl\" --output tsv;");
not pretty but I guess it works
a
This output should be available. What is the output you get from
oidcIssuerProfile
and how did you try accessing issuerUrl ? https://www.pulumi.com/registry/packages/azure-native/api-docs/containerservice/getmanagedcluster/#managedclusteroidcissuerprofileresponse
l
oh sorry I didn't even think to check there was a
getManagedCluster
I just checked the output of the creation call. So I guess I just proved my noob-ness when it comes to Pulumi. Thanks for the help!