salmon-morning-96600
08/07/2019, 11:46 AMexport const clusterStackName = config.require("clusterStackName");
const clusterStack = new pulumi.StackReference(clusterStackName);
The stack name uses <organisation>/<project>/<stack> so: ianbarry/infrastructure/ci as an example.
I reference this stack like follows in both service and deployment CustomResourceOptions object:
provider : new k8s.Provider(clusterStackName,{
kubeconfig: clusterStack.getOutput("kubeconfig")
})