https://pulumi.com logo
#general
Title
# general
b

billions-lock-80282

07/30/2019, 5:39 PM
Hi, I'm stuck using getResource on a Helm chart to get the loadBalancer hostname of a nginx k8s service. I'm running
Copy code
const hostname = nginx.getResource("v1/Service", ns, "nginx-ingress-controller").status.apply(s => s.loadBalancer.ingress[0].hostname);
but I get
Copy code
TypeError: Cannot read property 'loadBalancer' of undefined