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.