sparse-intern-71089
04/26/2021, 12:13 PMincalculable-engineer-92975
04/26/2021, 12:49 PMkubeconfig
parameter on the Cluster object. Assuming gcp is the same, after the cluster is created you export
it. Then you can reference the kubeconfig
in the stack. If you want it output in the same pulumi run, you'll have to have the export code run after pulumi finishes, e.g., something like this if you're using Typescript.
process.once('beforeExit', (code): void => {
if (code == 0) {
// export the kubeconfig
}
});
incalculable-engineer-92975
04/26/2021, 12:51 PMawat
as well but it's easier to wait for everything to finish executing. It's also the best time to run unit tests.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