does it populate the state with the IP? that status field starts out as empty and is filled (for informational purposes only) sometime after the ingress resource is created
d
dry-sugar-63293
10/12/2021, 12:50 AM
I got a response from Pulumi support in email on this one. Apparently this is an open issue tracked here.
the workaround is to call pulumi up twice, the second time with pulumi up --refresh (once the IP address has been provisioned)
dry-sugar-63293
10/12/2021, 12:52 AM
Thanks Mike for your response - you were spot on about the pulumi refresh. However my concern is how to automate this - I expect pulumi to wait until resource is created and then allow me to provision subsequent dependent resources (like DNS A record for example) in the same call. If we have to split this into two calls, how am I gonna keep the wait logic outside? combination of gcloud and shell scripting loop perhaps?
s
steep-toddler-94095
10/12/2021, 2:59 AM
this is definitely not ideal but one possibility is to create a k8s job that just loops a command and stops/comepletes once that field is populated. then have the subsequent resource depend on that job.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.