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")
})
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by