Hey, we create a CR for an operator on Kubernetes. The operator then creates other resources which we would like to consume in pulumi with something like “k8s.core.v1.Secret.get()“. Now the issue is Pulumi successfully creates the CR but the Operator needs some time to operate and create the final resources (in this case the secret). Therefore Pulumi tries to get a resource which does not exist and fails.
Now the question:
The operator updates the CR with a label called status. Is there a way for pulumi to “wait” for a specific label update on a resource so that the “k8s.core.v1.Secret.get()” can depend on it?
Or is it possible to retry getting the Secret resource for a specific time?