creamy-jelly-56953
04/19/2021, 12:41 PMlet ip = await kq
.list("v1", "Service", "istio-system")
.filter(it => it.status?.loadBalancer?.ingress?.length > 0)
.map(it => it.status?.loadBalancer?.ingress)
.firstOrDefault([]).then(it => (it?.length) ? it[0].ip : undefined).then((val) => {
return val
});
But I’m not sure how to wrap this into a Custom (dynamic?) resource to be able to have other resources depend on that (like, creating an AWS Route53 A record pointing to the newly created IP)