11/12/2021, 2:23 PM
I'm generating a cert from a Pulumi deployed cert-manager instance by implementing a custom resource, ie:
Certificate, err := apiextensions.NewCustomResource(ctx, "cert", &apiextensions.CustomResourceArgs{
                  // Various fields, etc
Which works perfectly fine - However, I need to effectively "wait" until the cert is in
state - I'm using a DNS challenge method so it can take ~60-90 seconds. I have another app that references the cert that's generated via the corresponding secret, which, I believe, isn't in a fully formed state as the app reads the secret before the entire chain is fully complete. Therefore, how can I facilitate this wait in my code? I could do this by inspecting the
field of the API object but it looks like I can't do that with the current SDK