https://pulumi.com logo
Title
b

brash-kite-78002

06/15/2021, 6:28 PM
Hello Everyone! I'm trying to figure out if a specific CRD exists in the cluster, and if it's not, deploy it. Otherwise, don't do anything. Is there any possibility to do it via Pulumi?
I can "get" a Custom Resource, but the problem is that if it doesn't exist, Pulumi fails on a preview step...
f

future-motorcycle-25374

08/20/2021, 7:26 AM
Hi @brash-kite-78002 Did you find a solution? I have the same problem.
b

brash-kite-78002

08/20/2021, 1:34 PM
Hi Desislava, Not in Pulumi. I had to make a request via the JS k8s official library to list all CRDs available. Pm me if you need some code examples.