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

quiet-wolf-18467

09/17/2018, 10:11 PM
I've uploaded some sample code. It doesn't offer to create the Kubernetes cluster, though I do not know why. It works if I copy the code block into
index.ts
w

white-balloon-205

09/17/2018, 10:33 PM
I don't seem to have access to this - but happy to take a look if you can share.
q

quiet-wolf-18467

09/17/2018, 10:41 PM
Its public now. Sorry about that
w

white-balloon-205

09/17/2018, 10:57 PM
Ahh - this is a subtle (and honestly, a bit unfortunate) TypeScript gotcha - if you import something but don't reference it - TypeScript will (sometimes?) elide the
require
in it's code generation. If you reference the imported k8sCluster (for example, exporting one of it's output properties), it should get included.
😂 1
q

quiet-wolf-18467

09/17/2018, 10:59 PM
Ah. That is unfortunate, but I'm glad it wasn't a typo 🤣
Thank you for your help, @white-balloon-205