https://pulumi.com logo
#golang
Title
# golang
p

prehistoric-sandwich-7272

08/03/2022, 5:40 PM
Any idea how can I use the getIngress function? not sure what to pass to it and how. tried doing the following:
Copy code
ingress, errGetIngress := networkingv1.GetIngress(ctx, values.Name, pulumi.IDInput(grafana.Status.Namespace()), &state)
but I get the syntax error:
Cannot convert an expression of the type 'pulumi.StringPtrOutput' to the type 'pulumi.IDInput'
f

flaky-arm-38472

08/04/2022, 4:08 PM
You are mixing two different types. you can not pass as arguments a
pulumi.StringPtrOutput
when the method requires a type
pulumi.IDInput
instead.
14 Views