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?
hm, we would like to have further pulumi resources to depend on the secret. Therefore a polling loop using a native k8s client is not feasible as far as i know.
So the dynamic resource needs the secret as input and the dynamic ResourceProvider can then loop over the Seret.get() ?