important-leather-28796
02/19/2019, 3:29 PMindex.ts
has certain things clusterName, kubeconfig
exported, but there is no explanation why. I’m assuming pulumi needs these named exports, but feeling a bit in the dark. I’m expecting the ts to be strongly typed; I was expecting to export something conforming to an interface
for example.gentle-diamond-70147
02/19/2019, 3:35 PMimportant-leather-28796
02/19/2019, 3:36 PMTo publish values that you wish to access outside your application, create a stack output via module exports.
// Export the Deployment name
export const deploymentName = deployment.metadata.apply(m => m.name);
and the comment isn’t helpful. I can see it is an export, but will pulumi fail without it? or is it simply to expose internals for reuse with my potential other code?3 unchanged
resources, so it appears these exports are typical ts module exports for reuse. Unless I’m wrong, I’d suggest a change to the doc code - exports are only needed if they are reused. In this case it looks like they are not (which led to my confusion)gentle-diamond-70147
02/19/2019, 3:55 PMStackReference
so you can break apart your infrastructure into different "deployable units" and manage them independently.important-leather-28796
02/19/2019, 3:57 PM