https://pulumi.com logo
b

busy-umbrella-36067

06/14/2019, 9:14 PM
Is there an easy way to use the interfaces from the Pulumi TS Packages? We’re building internal API’s that abstract K8S Deployments and it would be great to have the interfaces used by Pulumi as inputs for some of our ComponentResources, for ex: https://github.com/pulumi/pulumi-kubernetes/blob/master/sdk/nodejs/types/input.ts#L12609-L12656
w

white-balloon-205

06/14/2019, 9:22 PM
See https://github.com/pulumi/pulumi-kubernetes/issues/336, which is about fixing this, but also points to the workaround that is available currently:
Copy code
import * as inputApi from "@pulumi/kubernetes/types/input";
const port: inputApi.core.v1.ContainerPort = {...};
💯 1
🙏 1
👏 1