https://pulumi.com logo
#general
Title
# general
b

bitter-dentist-28132

09/04/2019, 6:14 PM
anyone know if there's a way to have pulumi wait for a cert generated by cert-manager?
c

colossal-beach-47527

09/04/2019, 6:20 PM
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

creamy-potato-29402

09/04/2019, 6:21 PM
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

bitter-dentist-28132

09/04/2019, 6:24 PM
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

best-xylophone-83824

09/05/2019, 8:46 AM
Didn't need it myself, but probably possible with dynamic resource
b

bitter-dentist-28132

09/05/2019, 3:48 PM
@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

best-xylophone-83824

09/05/2019, 3:49 PM
yeah, thats the idea
b

bitter-dentist-28132

09/05/2019, 3:54 PM
interesting. thanks. out of curiosity, are you using a particular package to access the kubernetes api?
b

best-xylophone-83824

09/05/2019, 4:09 PM
no, I was suggesting the idea, never implemented it myself 🙂
👍 1