https://pulumi.com logo
Title
c

cuddly-tailor-40542

11/01/2021, 3:48 PM
As an update to this question, Is there a way to get/lookup the load balancer resource after creating a kubernetess ingress? the
lb.LookupLoadBalancer
needs the
Name
to be of type string, however, the
Name
the Kubernetes ingress created for me is of type
Pulumi.StringOutput
. Below is how I get the Name
ingressUrlName := ingress.Status.ApplyT(
		func(status interface{}) string {
			return *status.(*networkingv1.IngressStatus).LoadBalancer.Ingress[0].Hostname
		}).(pulumi.StringOutput)
1