anyone know if there's a way to have pulumi wait f...
# general
b
anyone know if there's a way to have pulumi wait for a cert generated by cert-manager?
c
If you are using AWS, I believe this is the code snippet you are looking for: https://github.com/pulumi/examples/blob/master/aws-ts-static-website/index.ts#L122 Though as far as the specifics of how it works, I do not know.
c
cert-manager is a kube thing
@bitter-dentist-28132 there isn’t, yet—we don’t have await logic for the cm CRDs yet.
b
right, i guess you'd have to code some special sauce to wait for an
Order
to appear?
since there's nothing you could call
getResource
on to get it
and, not sure if you know the answer to this, but would i be able to use https://github.com/pulumi/pulumi-kubernetes/blob/master/pkg/watcher/watcher.go to code some of my own logic for waiting for it?
b
Didn't need it myself, but probably possible with dynamic resource
b
@best-xylophone-83824 are you saying you found a way to wait on a cert created by cert-manager? are you manually creating the certificates? right now i'm using ingress annotations to have it automatically make the certificates, but I suppose you're right that I could use a dynamic resource, and i guess wait on pinging the kubernetes api for the
Order
creation or something.
b
yeah, thats the idea
b
interesting. thanks. out of curiosity, are you using a particular package to access the kubernetes api?
b
no, I was suggesting the idea, never implemented it myself 🙂
👍 1